agent: logging HTTP API

HTTP endpoints and tests for the logging api.

-jeff
Done.