Replace rails application with Rails 4 application compatible with Heroku