2.5 loggedin

Refs https://github.com/cakephp/cakephp/issues/2390

I will also update the migration guide afterwards and remove it from 3.0.