Renames displayParams to displayParameters.
Renames canvasWidth/Height to stageWidth/Height and removes ratio computation.
Only fires the resize event if things have actually changed.
Assertions to make sure we have a valid container size.
Merge pull request #1862 from mbebenita/scale

Fixes displayParameters on retina displays.