notify: Add support for actions and persistent notifications.  Based on patch from Jean-Alexandre Anglès d'Auriac.  Closes: #206.