Separated the code for the socket connection into a new module
Separated the code for IRC into a new module