Refactored code to remove the Yii default UserIdentity component the Yii-User extension
replaces this component class. Minor code formatting changes.