Turned irc connection functions into a class (Kazbot). Eliminated redundant settings. Added main_loop function