Added scrolling

Did a good overhaul of the logical structure of the palm-control
program, and also added a scrolling feature. More emphasis was placed
on the control of the gesture recognition routine.