New version based on CakePHP

Checked-in new version and do something work for clean up...