First commit of basic socket functionality