Some refactoring. Added basic https://www.npmjs.org/package/nconf usage.

Added https://www.npmjs.org/package/nconf usage.