Fix test for restrict options
Do some JSHint
Fix inertia in browser that support GestureEvents

Native inertiastart is stopped.
Modify snap demo to work in IE9
Don't using native event timestamp object
Use isElement function to test if obj is Elemnt

For IE8
Merge branch 'master' into inertia
Make inertia more stable
Allow the user to regain control during inertia

If the event target is the inertia target element and the resulting
action of the event is the same as the current inertia action then
inertia is stopped and the event sequence continues as normal.
Improve snap and correctness of start event coords

Fixes bug with snapped start event coordinates being incorrect and also
simplifies some unnecessary complexities involving snapping and firing
move listeners.
Report more accurate pointer velocity

by using the 2 most recent user gesturechange/moucemove/touchmove
event coordinates.
Fix setEventXY definition and use for GestureEvent
Merge branch 'master' into inertia

Conflicts:
	interact.js
Remove incorrect inertiastart targetXY props
Reduce calculations done in inertiaFrame
Create fewer objects in getPage/ClientXY
Merge branch 'master' into HEAD

Conflicts:
	interact.js
Improve event velocity

Also alow inertia to be triggered even if the pointer was locked by
snap/restriction.