Require rails_12factor gem only on Heroku

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