Upgrade to Rails 4

* Update related gems

https://trello.com/c/qNEY7hle