Revert environment module usage in middleware.

Devstack is pulling s3_token into the swift pipeline and so depending on
keystone.environment is breaking devstack installs.

Fixes bug 1193112

Change-Id: Ifd89e542f79a2bee00113e7df676d30da0f05e59
Merge "Revert environment module usage in middleware."