Support many types of URIs for MongoDB and CouchBase.

While keeping the names/uri forms that are used by the REST
interfaces of those products, add a uniform form.