Update to Rails 4.0.0
Switch to Heroku 12 factor gem.