agent: logging HTTP API

HTTP endpoints and tests for the logging api.

-jeff
I've already done that per Bernerd's request, but oddly enough, one of you guys wrote this code.  I only commented it.