Bug 893910 - Review comment: Move reset check later, add doc, and add reset on success and failure.
Bug 893910 - Followup: Add tests for failure count reset on upload success or hard failure.
Bug 893910 - Followup: Add comment to ambiguous case as per IRC discussion w/ rnewman.