Adding capability for the client to connect to a unix socket.
Fixed previous mistakes with unix socket code.
Extract the unix socket code from opennet() into a distinct openunix().