Make flash checks performant with MutationObserver.

Per [74327786](https://www.pivotaltracker.com/story/show/74327786).  MutationObserver is more CPU efficient in checking for the flash messages that need to be dismissed.