add support of the config API

This changes add functions to handle the Apache CouchDB config API.