improve touch detection

Copy of modernizr's touch detection.  see https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js

fixes #56

My ide stripped some whitespace too, I can omit that if you want.