Add configurable rails_env specific to workers

For Cap 2, it will try `:resque_rails_env`, then `:rails_env`, then
fall back to “production”. For Cap 3, the fallback will be the current
stage (similar to capistrano-rails’ behavior).