Clean up desktop notifications
Review Request #8072 — Created March 23, 2016 and submitted — Latest diff uploaded
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.