Moving mesh cosmology: the hydrodynamics of galaxy formation