[JRO] Start upgrade to Rails 4.0

All tests except for features passing.