[Reviewer: Andy] Connect to SAS via a socket server

Co-req changes for the socket factory stuff.