Chat - Estaestablishing connection

Implementation of a simple connection between server and client side.