Pasted touch event handling from old viewlet.
Added handling of empty touchlist in touchend (which is the case for
touch-emulation in chrome). Cache the most recent event and use that
instead.
Fixed usage of undefined constants.
Merge pull request #110 from sintefmath/cdyk_viewlet_touch

Fixes touch handling in new viewlet. Tested on chrome emulation and Samsung G4.