Removed some useless loggers. Changed 'console' to 'logger'
Moved logger.js into a helpers directory.
Split out some of the puppet stuff into separate functions. Reorganized program parameters.
More tweaks.