Yii 2 advanced app environments fix

Gii module make sence only for dev environment. Mistake was that gii module is accessible even in prod environment. Also gii was inaccessable form backend.