Adding a pending notification store

The main idea would be to store those notifications that have not been
sent in case they fail so we can retry later.