Initial changes

Changes to accelerometer implementation for iOS and Android to equalise
their output. Also, the iOS implementation uses Accelerometer instead
of DeviceMotion.
Note: this version is only working for portrait devices. Will fix soon.