Make the logger more modular

This work will enable the graphical logger to reuse some code.
Improve the debug print facility
Simulation visualizer display packets sent to the simulation and node status