Fixes devices that use both mouse and touch

Fixes the issues where Photoswipe jumps to the conclusion that mouse or
touch is not needed depending on what is used first, which is not good
on touch enabled laptops.
Also fixes an error in the deactivation of the touchstart handler when a
mouse is used, which can disable both mouse and touch.
Adds edge swipe functionality

Swiping past the edge left or right to go to previous or next image, and
up or down to exit zoom mode or carousel.
Merge remote-tracking branch 'origin/mouse-touch-fixes' into test
Merge branch 'refs/heads/edge-swipe-experimental' into test