Notification parser

Extract NotificationParser class from main api/notifications.js file.