Add get_or_create function to ccouchdb.
WIP