Added missing import statements in irc lib
Did some refactoring
Refactored mode setting system in connection and utils