This is the easiest and cleanest way to get logging into some of the fundamental APIs, such as the database and TLS APIs. We don't want to have to pass logging functions to those, but they can safely use the global logging configuration.
Also added a LibreSSL TLS implementation. Client is verified to work; server has not been tested yet.