Clean up connections and JSON objects in connection and peer.
Ack immediately in server, handle operation and cursor JSON objects
properly in server, and register connection after it opens in peer.