Add basic socket frame

Add socket server and client framework.