Rich document ids for CouchDB