Created AbstractIrcMessageListener that implements support for connection management.

Created an abstract class which implements the base support for
responding to quit events and errors. This only needs to be overridden
in cases where additional action is required.
Fix NPE: Do not update nick for users that have no corresponding contact.