Refactor confirmation javascript into a jQuery plugin.

- Add a view helper to generate the unconfirm settings
  and call to the new jQuery plugin.