Updating the url parse function to support replica sets using the Mongodb parsing function and some mapping logic

This function now gets a well parsed url based on the parse function that MongoDb uses. Then this function maps the parsed data into an options structure that matches what this module was expecting.

We've added an early version of the changes to this module to our local repository under a different name to keep moving forward, but I wanted to see if I could contribute back to this module. If this pull request is accepted we'll change over to using the published version here. Let me know if you have any questions or concerns. Thanks!