Implement notification repeat feature.

As discussed and agreed on in #393.
Fixes #393. Fixes #1131.
I don't see it? I intentionally tried to stay down to one preference, with "disabled" being encoded as 0.