couchdb: API cleanup

- The Server type has been renamed to Client.
- The Database type has been removed. All of its methods
  are now methods of Client that receive the database name
  as the first argument.