Refactoring of various internal APIs, particularly those dealing with replicating documents with attachments.
Refactoring of various internal APIs, particularly those dealing with replicating documents with attachments.

git-svn-id: c1f8a8ec0b3bb2e99ab3413722f81f687760e79c@946803 13f79535-47bb-0310-9956-ffa450edef68

apache/couchdb-futon,apache/couchdb-futon