couchdb: Implement `update()` and `commit()` for all CouchDB objects