Metrics: Allow several registries

This commit adds a new SharedMetricRegistries class, which allows to create own MetricRegistries in case you want to send out application specific metrics split from the standard ones.

Closes #404