Bug 982663: collect and transmit app usage metrics

I don't get what happens on repeated retrys. What prevents us trying to send another batch while the first batch is still failing?