You can easily control the direction that both water and lava flow using some redstone circuitry. Unfortunately, this trick will only work once before needing to be reset - but it's still useful for building lava traps or other machines.