Feature/metrics endpoint

/to @rmg for review

/to @chandadharap to try out, this may make your datadog stuff easier.
This test _appears_ to be fully synchronous, except for the `setTimeout(done, 2000);`. If the timer is necessary, there should be a comment explaining it.