Added SSL and limited queue support.

Also retry if we lose connection to the server.
slf4j seemed to be unused. We don’t support client certificates at the moment and only use TLS. We can verify certificates with roots shipped with the JVM.