Major rewrite to move to an IrcMessage class instead of all the separate parameters for modules

Also minor clean-up and bug fixes