Clean up desktop notifications

Review Request #8072 — Created March 22, 2016 and submitted — Latest diff uploaded

Information

Review Board
release-3.0.x

Reviewers

This patch fixes the last remaining issues on
https://reviews.reviewboard.org/r/7660/, as well as porting the bulk of
the change to ES6.

Ran JS tests.