Removed CouchbaseLite reference from OS X framework
Added prefix to referenceObject in NSManagedObjectID to prevent Core Data from ignoring the suffix after the first digits.
Restructured code to support debugging.
Fixed change handling.