Add rails_12factor gem, to support heroku deploys

Otherwise static assets are broken due to changes in Rails 4.