Refactored controller creation process.
Merge branch 'master' of https://github.com/yiisoft/yii2 into advanced-app-travis