Add ol.BrowserFeature.DEVICE_PIXEL_RATIO constant
Better canvas sizing handling (canvas and webgl)
Merge pull request #1306 from fredj/canvas-size

ol.BrowserFeature.DEVICE_PIXEL_RATIO and canvas size