Refactoring base model
Merge branch 'master' of github.com:YuriyVizenkov/ci-yii