Detect if the swipe is valid at the end of the touch event.

Fix for Issue #130

Noticed that when a touch event ends it was not setting the phase to cancel when the threshold was not met.

This is shown in the demo /demos/Thresholds.html where the text "You didnt swipe far enough" was not being displayed.