use req/rep to synchronize before pub/sub

Both publisher and subscriber can now be started independently. They will wait for the other.