Remove tight rails dependency.

Doesn't touch documentation or attempt to decouple controllers.