Refactored IrcProtocolAdapter and it's events.