A few more fixes to make the framework compatible with Mac OS X 10.7.
Added more safeguards when triggering iCloud downloads. If a download has already been initiated for a given URL, it won’t be initiated again until the download has completed.
Fixed some bugs in rebasing that could cause a device to not import objects in particular circumstances. The test for whether a full integration is needed is much more robust, ensuring stores replay all changes if they have been ‘abandoned’. The test of abandonment is simply whether a merge event exists that is newer than the baseline. This will cause a few more full integrations, but is preferable to being out-of-sync.
Several new rebasing tests have been added, which were failing before the changes.
Added a test for a non-nil object id before trying to fetch the object. Generally never nil, but could be triggered if the DB is removed.
Added a few extra  nil checks in CDEEventBuilder. Some reports of crashes due to nil.
Merge branch 'master' of https://github.com/drewmccormack/ensembles