Adding some unit tests. Also using the config file to add the ability to keep a separate MongoDB instance for testing. Really re-factoring a bunch of stuff.