lml/ost#347: Convert native confirm to dialog based confirm.

TODO:

* [x] Cache the settings at the session level.
* [x] Debug and fix the "Continue" button action.
* [ ] Make `maybe_confirm` JS seamless.
* [ ] Fix styles for checkbox and dialog.
* [ ] Add a simple page to view and change the settings.
* [ ] Refactor and extract it into a gem / plugin.

Nevermind.  Probably a good idea to refresh the session variable during the update just in case the user is logged in twice.