Add support for Rails 4

All tests are green on engine specs and using the engine with Catarse's code on rails 4.