Added socket to connect to server. Added multithreading to read and write to socket.