Rewriting IRCQueue as a library

Yet another full rewrite. The reason being that this really makes more sense to
be used as a library than as a bot.