Merge branch 'rewrite-metricsd' into merge-metricsd

Initial import of metricsd from platform/system/core.

BUG: 29548040