[libsock] Partial redesign of socket classes.
[libsock] Big rework. May need future cleanup.