Irc bridge updates

Some improvements for the IRC bridge, most notably in the CTCP commands (ACTION, PING, TIME, VERSION). See the individual commit messages for details.

I'm publishing this because some users in #Hercules expressed interest for these improvements, especially about the /me command support, not to mention that I noticed the existing "VERSION" implementation wasn't working at all.

The code has been in use on a live (even though not public) server, so it should be tested already. But, still, please review.