First pass at adding multiple-socket handling:
* Need to patch local terminal commands for IRC to not override the _socket.