Working with the AppInstalled and AppUninstalling events in SharePoint Apps