FB 33239 add mutable document revision

See https://gist.github.com/mikerhodes/c022e9e44d83c2e4747e for mini spec (objective-c version)
Any better to pass the attachments in rather than the attachmentManager? The other alternative is for getFullRevisionFromCurrentCursor to return a builder and then call .setAttachments on that in the callee.