Merge remote branch 'cloudant:79066-port-chunkified-replicate_batch'