Run gofmt and add API functions to reset metrics and counters

The reset metrics and counters can be useful when we only want recent stats.
That way the stats can be reset programatically every so often, or when a particular event happens