Rename app_dir to sources_dir
WIP
Rewrite app archiving and restoring