IRCConnection: Make the socket class configurable

This makes using TLS possible.