Add some tests of the CouchDB API.

Tests are only run if there is a local CouchDB instance running, and if it the test runner has the correct credentials.