Reduced the number of debug messages
Restructured message sending methods to reduce amount of code duplication
Removed unused logging code, added logging of messages sent by client