Bug 982663: collect and report app usage data

This patch does not have tests yet, and is still missing a couple of features, but it has working code and is ready for feedback and preliminary review.
Crash report is a really old module and since we are not able to repro crash we don't have any test for it. I suspect it stops working or not working correctly now.