More work on logging subsystems, HTTP connection cleanup.

Made the HTTP log handling actually done through a logging.handler so we
can attach any number of handlers for file, other log output.
Separated out log handling on both the client and server side.
Added indexing to the log streaming so a client can't miss logs if many
are emitted within the same hundredth of a second.
Made both the client and server side clean up after a HTTP disconnect,
cleaning up all pending timers and such.