Refactors the page dirty check.

- Don't show the please wait overlay, if page is dirty.
- Delete the onbeforeunload event, if the confirm dialog is used.
- Use $.show() and $.hide() to toggle the please wait overlay.
Bumps version to 3.0.0.beta1