move app management from database to filesystem. adapt AppsResource and AppDAO to this. add integration test.