Extract deliverable behavior of Notifications to observer

Also fixes #555.

With this change, every new notification committed to the database will be automatically delivered when created (unless when "dismissed" attribute is set to true).
Are you sure? This way we wouldn't recalculate it on profile updates.