Implement notification repeat feature.

As discussed and agreed on in #393.
Fixes #393. Fixes #1131.
Whoops. I had to refactor a bit and lost that line of code. Both devices that I test on have the password disabled, so that's probably why I didn't hit this.