Refactor of TiSensorHelper, TiCompass, GestureModule and
AccelerometerModule. Major thing to note is that the accelerometer
listeners (GestureModule 'shake' event, Accelerometer 'update'
event and Geolocation 'heading' event) will need to manually be
removed when the app is paused or exited otherwise the
accelerometer will be attached and sending events as long as the
app is running in the background.
This change also partially addresses #1386
Test app for this this change is attached. In order to verify
shake event, click 'Attach Shake' and then shake the device for a
few seconds. The event should be noted in the yellow status bar and
in the trace log.