NPE fix in SetupSupport

ComponentName parser may return null if it fails to parse the package name. Now handling that.

Issue #325

Change-Id: Ia960dc925206260b4aa2ca00b280905895e95bde
Some source formatting stuff

Change-Id: I980455cbf6ff0d89e865e164ed9e1a9e3a450d3d
Better Detecting swipe/zoom gestures. Issue #324.
This is also preparation for fixing issue #252

Change-Id: I3d2d6f011bb1535bbaaad5693372e9fe94230c34