Upgrades, scrolling

Added improved gesture detection and scrolling support. The scrolling
algorithm is not good, but I'm sure someone who wants to play around
with it can make it feel nice.