Improved semantics for debug, log, warn, err.
Implementation of Connection/Session taking form.