Refactored to use nconf. Failed attempt at organizing client code for tests.