Add more debug logging on message sending

More logging on sending logs. To hopefully catch the issue. #47
Add trace logging so debug can be left on without filling up
local log files.
Add version of logit to the outgoing log. fixes $52
Merge pull request #53 from stuart-warren/next

Add more debug logging on message sending