Big improvements in the touch events

The scroll event now is working fine - the new engine detects if the
swipe is more horizontal or more vertical and if the swipe is
horizontal the pagination action is called, otherwise the scroll event
is used to scroll the page.