Replace all console logging with winston - using console and file-based logging
Fix style warnings and logging error
Change polling message to debug-level
Log shutdown message before exiting