Added rails 4 support for Heroku.