New definitions and tests for hammer.js v2 (a complete rewrite of lib)