Rebuild the chat system with cakephp