Moving cakephp to the front-end