Fixes gh-4 (hopefully) also sets up the ENVIRONMENT variable to be passed with each request so I can have one copy of base.html