rest WIP
Merge branch 'feature-restapi' of git://github.com/yiisoft/yii2 into feature-restapi