OGM-481 Consolidating association handling for MongoDB and CouchDB