Fix Rails 4.1 issues

* Use Ruby version without patch level if Ruby >= 2.1
* Insert routes after Rails.application.routes.draw
* Add spring to Gemfile