moves the rails engine into it's own file for inclusion