I recommend checking out the Photoswipe source. It uses many of these techniques to create a swipe-based image gallery optimized for iOS and Android.
https://github.com/codecomputerlove/PhotoSwipe
Here's a simple HTML5/Photoswipe/Phonegap app I wrote that you could experiment with:
https://github.com/stungeye/HTML5-Tumblr-Mobile-App
Explained here: http://mobilehtml5.stungeye.com