Rewrite of the notifications system

It also reintroduces the possibility to turn auto-refresh on and off,
both with the constructor or setter.
Not really. Eventually we will need a switch in the UI to be able to use one version or the other