added cakePHP classes for errorhandling and logging