Update DeviceOrientationControls.js + Demo

- Convert from Euler angles to using rotation matrix.
- Handle screen orientation changes through transformation matrices.
- General clean-up of code.
DeviceOrientation rotation vector should be a THREE.Vector3 representation
Minor code layout changes (editorial changes only)