Fix appmanager caching

Apps are expected to be a singleton so that they can be mutated during the build process.