Added a wsgi middleware to provide a restful interface to the metrics