Bug 817821: Better update download event handling

I have r+ from @etiennesegonzac here:
https://bugzilla.mozilla.org/show_bug.cgi?id=817821

This should be landed once the platform patches hit mozilla-central