Serialize/deserialize config to/from CouchDB