Use Component::beforeFilter() instead of initialize()

Component::initialize() has been updated in CakePHP 3 to match other initialize() methods.
As per https://github.com/cakephp/cakephp/pull/4823