Added a managed object context save right before the persistent store is moved to ensure that all pending sync changes are committed to the store before it is moved.
Copy the local sync changes persistent store and then remove it. Also, don't stand up a new sync changes MOC right away since it will get lazily loaded as needed.
Just a slight formatting change, nothing to see here.
Merge branch 'develop' of github.com:nothirst/TICoreDataSync into develop
Reworked the logic in endBackgroundTask to bail early if the backgroundTaskID is set to UIBackgroundTaskInvalid. This keeps the program logic left-aligned, making it easier to read.