Initial commit

This version includes my publish-metrics-via-network code, which is
used elsewhere to provide instrumentation. It needs to be removed, or
made optional.