Reorganize the repository into a couchapp