Fix iScroll regression on mobile devices (broken in 0.2.8), improve
modal dialogs so that pages before do not need to be reloaded.