Move tls/x509 logic out of get request method. Turn config into global singleton. Add initial primitive support for logging.