Moving-mesh hydrodynamics with the AREPO code