Add configuration support

I added a dependency on jsonfig, which allows you to set configuration values in a json format, and then use them in your code. This way, if your mongodb server changes to be something other than localhost, you don't have to change the code, just the config.