Continued work on authentication to the server

Signed-off-by: Martin Säfsten <martin@safsten.se>