Remove refs to ENV in middleware
Merge pull request #21 from jgn/jn-remove_refs_to_env_in_middleware

Remove refs to ENV in middleware