Use Yii2 advanced application code

See: https://github.com/yiisoft/yii2/tree/master/apps/advanced