CakePHP 3.x version

I updated the plugin to be compatible with CakePHP 3.x

I would suggest merging it into a new/different branch for now and not into master yet, but I can't seem to suggest to pull it into a new branch.