FB 33239 add mutable document revision

See https://gist.github.com/mikerhodes/c022e9e44d83c2e4747e for mini spec (objective-c version)
Thanks for spotting this, it's no longer needed after a refactor (previously it needed the Datastore to know how to get attachments)