agent: logging HTTP API

HTTP endpoints and tests for the logging api.

-jeff
Yeah, I caught the separate PR I submitted for this fix.