Fixed #11: Added a logging interface.
Sending packets using const & buffers, use auto& instead of auto.