Modified document apis to use 'doc_revisions' collection.