Bug 870169 - Extract reusable telemetry code from ANRReporter.java. r=rnewman