added messages to start synchronization
added map from public key to id in backend
changed Synchronized interface to make LockedPointers user constructable with a strict interface
replaced message queue with priority queue