Add IrcBuffer::sendCommand()
IrcBuffer: fix crash when the title is empty
Restore IrcBuffer::session() for convenience

It seems to be very often used, so having to go through the model makes
it a bit inconvenient.