fix SSL handling

It is now possible to connect to the lookupd and gafferd nodes using HTTPS.
Also gafferd is able to speak via HTTPS to the lookupd server.