Attempt to comply with twelve-factor methodology

* Move as many tunable values as possible into environment variables.
* Set some sane-ish defaults in .env.example for easy overrides