Work on migrating local files to the ubiquitous store.

This code is based on a response from Apple when I asked about the right way to do this. Ironically the code given by the engineer deadlocked due to migratePersistentStore doing a coordinated write.