Basic notifications handling.

Here's the new handler + some unit tests.

@nasthagiri @flowerhack @mmprandom 

LMS-11163
we don't need this separate `should_display_rerun_notification` field anymore, since having found a current_action implies that it is for display.  Note the optional argument, `should_display`, for `find_first` above.