Implement StatsFunction Registry for features.

Refs #5622
Implement IcingaStatusWriter object dumping local and feature stats.

Refactored the cluster listener health check too.

Refs #5622
Refs #5444