Load rails_12factor gem only on production.

Load rails_12factor gem only on production to disable multiple logging by rails in other environments.