Implement waitUntilCaughtUp by publishing a message and waiting for it
Use a unique sequence key so we can have multiple servers
Whitespace fixes