Add HiDPI detection

This method of HiDPI ("Retina" in Apple proprietary version) detection is much better than devicePixelRatio checking.
In fact, HiDPI begins from 1.3dppx. There is a devices list for example: http://bjango.com/articles/min-device-pixel-ratio/