record acceleration and orientation

tested on iphone safari
Merge pull request #14 from ypcat/master

record acceleration and orientation