Basic REST communication and working login

Login lacks error handling