Functional and qualitative changes for Rails port
Merge pull request #46 from johnholdun/rails-changes

Functional and qualitative changes for Rails port