CakePHP code convention adoption and bug fixes