Swipe support on mobile

Implement swipe left and right on mobile to switch the currently displayed item (Issue #346).  I use hammer.js but use it in a minimal way so it shouldn't have any negative impact on the rest of the code.  This works for me for Firefox on Android.