Update to Rails 4 and add rails_12factor gem for Heroku compatability