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`.
I talked about this with @kenkouot and we've decided that preview and the rest should get production-like code.