Round heading down to nearest degree
Use rotation matrices to determine compass orientation as per http://dev.opera.com/articles/w3c-device-orientation-usage/#rotationmatrixes