Add navigator.compass and deviceOrientation support.