Add main part of client code (connexion to CoreServer)