Freeze Rails to 4.0.0

Rails 4.0.1 introduced some incompatabilities in our use of ActionPack