Fix crash and ssl tunnel setup: server/tunnel mode is now per client
connection, not for the whole server.