Add pinch-to-zoom support for Android.

Fixes #1169, #984.