Fix config parsing to set the correct flush interval.
Implement timer and set metric types.

Add support for multi-metric packets and some more statistics.