Update rails to 4.0.0
Add rails_12factor gem

For logging and assets, read more about it at:
https://devcenter.heroku.com/articles/rails4
Fix broken spec