Add Heroku specific gems for Rails 4.

memcachier & dalli enable precompiled asset caching to speed
up deploys on Heroku

rails_12factor enables Heroku to write logs from multiple different
dynos for the same app, it used to be accomplished by plugin
injection in Rails 3 but those were removed in Rails 4.