Add accelerometer plugin

 * Based on https://github.com/gameclosure/accelerometer.git eae90537655ee03d5529f7a81a0782319460632f