Cake 2.4 behaviour callback compatibility fixes.
Merge pull request #34 from hdogan/2.4-callback-fixes

Cake 2.4 behaviour callback compatibility fixes.