Reorganize the repository structure and add Phing scripts