Refactor per-connection state in experimental sliding sync handler.