ALM-613 store document id of history documents in CouchDB
ALM-613 don't store history information in CouchDB history documents
ALM-614 drop retrieval_histories table and all references
ALM-653 removed dependencies on retrieval_histories table
ALM-652 updated v3 Api to no longer use retrieval_histories
ALM-653 fixed tests
ALM-652 fixed tests