WIP - add support for couchdb Map/Reduce.