Fix that notifications are not registered
Fix that retrieving notifications causes them to be dropped entirely

I've broke this when doing some improvements while being
brainless, obviously.
Fix that the session is written too early when post-dispatching