Combined all features of palm-control and master

Palm control and pointer control can now be done with the --finger
(default) and --palm switches. The code has been restructured in a way
that will make maintenance and algorithm upgrades much easier.