Remove some Rails dependencies to allow the tool to be used on a non-Rai...

...ls project.