Fixes #4 - implements api/stats and api/throughput end points