Multiplexer for mailbox uploads
A connection from a mailbox's owner to the mailbox may carry multiple uploads in parallel - one containing sync records from the owner to the mailbox, and one per contact containing an encrypted stream to be downloaded by the contact.
Implement a protocol for multiplexing these uploads over a single connection.