agent: logging HTTP API

HTTP endpoints and tests for the logging api.

-jeff
I don't think an output formatting failure should result in the core dump.  This is exactly the same action we're taking with the container output.