1. added log in api. 2. Added yii debug toolbar