Rework how logging works in httpcontext.
Add json output support to DataHandler