Freeze Rails to 4.0.0

Rails 4.0.1 introduced some incompatabilities in our use of ActionPack
Merge pull request #269 from ndlib/freeze-rails

Freeze Rails to 4.0.0