First version of server connection

Only roughly implemented server connection, so far no challenges can be
retrieved