Use beforeFilter() method instead of initialize() method.

Component::Initialize has moved to earlier in the bootstrap process in order to match other objects.
See https://github.com/cakephp/cakephp/pull/4823
Use the component registry to get the controller reference
Merge pull request #169 from dakota/3.0-update-component

Use Component::beforeFilter() instead of initialize() (closes #168)