HG-207 Disable debugging for production env

https://wikia-inc.atlassian.net/browse/HG-207
Export environment variable to front end and use it to turn debugging off or on. Allow to override it with querystring `?debug=1`.
It's useful when you want to see logs in console when testing the production build. I obviously needed it for this task, maybe it'll be useful for someone else too.