Adjust SSL context generation for Server:

The creation of self-signed certificates slows down the command
line client when launched repeatedly during unit test.
* Contexts are no longer generated for the command line client
* A port with no secure protocols generates an empty context

Reviewers: @donovanhide @josh-ripple
it might be called before the logs are created. This could use some tidying though.