Fixed URL parsing of replsets

Fixes replset and auth parsing issues, as described in #19.