Abstract swipe.js so it can be a library
Merge branch 'master' into gh-pages
wip