add device motion for mobile device
Merge pull request #5 from sjtug/devicemotion

add device motion for mobile device