A lightweight script to detect various motion aspects on capable mobile devices and track or transmit the data however you wish.