Update attachments in a block, giving all or nothing semantics.
Expose a putRevision... method which can be used within a transaction
Create updated document and add attachments in single transaction