Rewrite of the notifications system

It also reintroduces the possibility to turn auto-refresh on and off,
both with the constructor or setter.
Why suppress warning? Is there a test missing?