3.0 api

For https://github.com/cakephp/cakephp/pull/3424

Also corrected the changes around "allowMethod".