This commit makes certain notifications cancellable. This enables notifications to be sent conditionally based on the user's choice.