New desktop notification

Updated the internal workings of displaying and rendering desktop notifications to be cleaner and more robust.

This PR primarily addresses #16 but also fixes a bug introduced by #49 relating to a bad reference.