Update for API changes in chrome

Update for API changes in chrome.  Previous pull request had some issues creating duplicate listeners.  Current pull request checks for listeners before creating a new one.  API updated with minimal changes.  mailNotifier.notification changes to '' so that it can be passed through and reused.  This prevents the need to get and clear all notifications, and can instead target only the notification issued even when cleared outside the callback function.