Simulating the interstellar medium and stellar feedback on a moving mesh: Implementation and isolated galaxies