Allow a uri to be passed as the first parameter to connect

I wanted a way to be able to pass a connection uri (e.g. `MONGOLAB_URI` in the environment) to the connect function. Without this, I had to parse the uri just to get the db name, and then pass the uri itself as the `host` keyword argument.