Bug 847908 - [Gallery] Remove mouse event shim in favor of GestureDetector

Fix for [#847908](https://bugzilla.mozilla.org/show_bug.cgi?id=847908). This patch removes the use of the mouse event shim from the gallery, and replaces it by the gesture_detector, following discussion in #8333.