Refactoring SyncAjaxDataStore

Still the worst named thing ever, but at least the code is slightly
better