Adding Sensor API impl for Android

This implements the Sensor API for Android.
Rewriting of the old and incomplete implementation.