Implemented service stats as an optional event handler

Was an integral part of the processor. As a side effect, the interface
for event handlers was updated to fit this use case.