Wrote connection class.
It is responsible for sending and receiving data from server.
Made applet connect to server.