Added statistics for processor & producers:

- created two different implementations of the sample producer, one that
  produces samples periodically, and one that generates bursts of
  samples;
- implemented the stats provider interface for processors and producers.