Bug 870169 - Extract reusable telemetry code from ANRReporter.java v3

Replacing pull #324