Added base classes for API management in Yii