Fix parse-irc-message.

It was an OK attempt, but splitting into the command + misc args was
flawed. Now it passes the tests.

Also add a couple of helpers because why not.