Feature/cake3 support

Basic upgrade to make it work with cake 3.

I would like to add somes tests in the future.