modules['notifications'] refactored from RESUtils.notification stuff
module.options[optionKey].default = code value for option
RESUtils.firstValid: return first useful argument
modules.notifications.options.closeDelay
RESUtils.firstValid handles NaN properly
also more readable
modules.notifications.options.notificationTypes for managing (read: disabling) notifications
Notification types have dual key: moduleID and either a notificationID, optionKey, title, or hashed message
refactor modules.notifications.saveOptions
refactor modules['notifications'].getNotificationTypeOption(notificationType)
modules['notifications'].disableNotificationType(notificationType)
notifications show "Enabled [✓]" for notification type
Merge pull request #675 from andytuba/notification-module

Notifications module