Encapsulate messages to send in a class

I need to contain the raw command, message to display in the chatlog,
and the target (channel or user) in a single place so it's easier to
maintain this (since the result of sending a message is more than
just a string to display in the current chatlog)
Remove some lame edge case