Keep track of whether or not the app is online on the js side, and fixed a minor bug in SyncHelper.js where it was trying to sync media for the aoi layer