Bug 982663: collect and transmit app usage metrics

Does the metrics server require JSON here?  Could we define a more compact string format?