Implement summary macros e.g. $icinga.num_services_critical$.

Additional $icinga.uptime$ macro.

Fixes #2742