Adding Basic Socket threading and first controller functinality