add rails 12 factor gem and change a config to help asset pipeline work on heroku