Support for connection strings and replica sets, also updated docs and t...

Support for connection string and replica sets.  Also wrote a test suite executable by running `npm test`.