Cleaned up notification handeling. The server now sends an email for
every new notification.