model/notification: Fixed broken type constants
model/notification: Moved count_unread_notifications() into Notification
model/notification: Added query_unread() classmethod