Making the lib/*.js files use the config lib

Using the config lib vs directly requiring the ../config.js allows overrides in the config.prod.js