Convert the project to apps

Work in progress. Do not merge.