Migrate I/O to separate classes
Sync
Remove main class entry
Handle PING in connect(), don't send null auth lines