Notification framework

CONTAINS SCHEMAMIGRATION!

An initial version of the new notification framework