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`.
should that also be `prod` ?