Encapsulate touch lib

- Define the touch lib in a closure and only expose the methods we want.
- Define swipe object once per element , but declare threshold for each
new event added to the element.