Gesture detector framework for multitouch handling on Android, based on Android's ScaleGestureDetector