Added logonToServer support

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