Support Rails 4.1.0.beta

Currently this just duplicates all the Rails 4.0 specifics.