WIP
Make onbeforeunload popup optional
If not using onbeforeunload, show warning on Home button press

On applications where we disable the native browser's beforeunload,
we still want to show a warning iff the user presses the home
button. In this case we use window.confirm because it looks good
in native mobile apps.
Call layoutDidChange on step change to force scrollbar to appear