Implementation of a restful client that connects to a server and register/login to it