Move irc internals to a separate "irc" module