MDL-43885 Javascript: Make the [X] button work like 'No'

The [X] button on the dialogue is another form of the 'No' button and
should behave as such.
MDL-42428 Javascript: Switch M.util.show_confirm_dialog to use moodle-core-notification