Moved most of irc into separate thread in class

#97
Also fixed potential exploit,