Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304.