Require rails_12factor gem only on Heroku

In non-Heroku environments, we have found the `rails_12factor` gem
prevents production/staging logs from being generated.