Further development:
env mimics Rails.env,
Added override_ENV, system, shell_eval, ruby_eval, rails_eval, runner_eval,
and misc fixes