Switch to new environment.py library for config

I factored out a new library called [environment.py](http://environment-py.readthedocs.org/en/1.0.0/) to manage configuration from environment variables. This commit replaces our former usage of the envvar function with environment. The next step is to replace all of our direct os.environ access.