Bulk changes, not working, need unit tests

Reorganised namespace, added GestureJS.define.
Javascript fail, points are now keyed by time, events are tracked by
modifying the event object.