Allow RAILS_ENV to be set externally.
More stuff to allow for test.