added json pretty printing code.
disabled content-length header in output, requires fix.
Added logging for request content, response content, and dispatch exceptions.