Working on client connection methods

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