Moved the getClosestRevision method to the Model library.
Fixed a bug where the sync second pass wasn't being performed when updating from a collection.