Based off gnome-panel's status-notifier applet:
https://git.gnome.org/browse/gnome-panel/tree/modules/external/status-notifier