Improve Socket Comms functionality

The "/gate serverls" command now pings the servers and returns their
connection state to show in the server list. Additional bug fixes and
error handling for socket comms.