added X-Requested-With header to ajax, and some ajax tests
formatting
Move ajax tests to seperate file
run test, and fix some slack bugs
add tap/doubleTap/swipeLeft/swipeRight custom events.
add a new functional test page for these events.