Add environment constraints

Add constraints `:only_environments` and `:except_environments` that consider the value of `RACK_ENV` or `RAILS_ENV` or `ENV`.