Freeze Rails to 4.0.0

Rails 4.0.1 introduced some incompatabilities in ActionPack

We can fix this a bit later.