Reworking HTTP handlers to clarify the code.
-- working commit.
Improved semantics for debug, log, warn, err.
Implementation of Connection/Session taking form.
Implementation and API should be stable now (modulo bugfixes).