[WIP] Rails 4.1.0 again

Revenge of #39.  

But I am still working for this. Do not merge.