Features/decouple statmonitor

Switches to using a StatAccumulator instead of the now gone StatMonitor.