Changed Utilities.java to a subclass of ListenerAdapter.

Added the necessary methods to process channel messages and private messages.