new models and api routes and some yii libs addeds