Implement notification repeat feature.

As discussed and agreed on in #393.
Fixes #393. Fixes #1131.
Make this stateless and move scheduleRenotification down to after the notify call