Batch command sequence writes

This allows command sequences like Prepare/Describe/Sync to be sent in
fewer TCP packets.