Added Pinch5 gesture. This is the close application gesture on iOS 4.3 and above.
Tidy up of a bit of duplicate code.