Makes DEBUG configurable through env vars

Used to help with Heroku debugging.