first yii2 draft

This will be my first yii2 draft for this extension - will port the rest of the code tomorrow