Refactor status/perfdata stats registry (WIP).

Refs #5622