Updated the Library for Yii 2.0

I spent a lot of time fixing the namespacing for the new version of Yii. I hope this helps.