Logging api http

HTTP endpoints and tests for the logging api.

-jeff
This is a note for the refactor, not this PR. But we should eliminate all* globals, including flags.

* Exceptions: logging and telemetry