saveApp() and loadApp() for app-in-app