Implement DOM screen.lockOrientation and screen.unlockOrientation

Credit due to Zhenyu Liang who wrote most of this code! and for Thiago Santos for helping me with the extension parts.

Can be tested manually with http://jsbin.com/IJapIVE/4