Clear the notifications map when notifications are dismissed.

Uses a broadcast receiver that clears the notifications map when notifications are cleared/swiped away in the notifications area.

Fixes #1481
Now that this has been added, `activeNotificationsMap` can be declared as `private static final` (which also means it will never be null).