Adds a delegate protocol to CBLReplication and CBL_Replicator to avoid issues with the notification delivery using the NSNotificationQueue (workaround, not a change intended ever to go back upstream).