Provide better BC for CakePHP2.x and use static (PHP5.3+).

@dereuromark :poop: