Fixed deadlock when diffs are sent simultaneously from different hosts. Added option to turn off bidirectional synchronization (bidirectional = false). Bidirectional synchronization still has some bugs and causes sync errors, although not many. Unidirectional part seems to work ok.