Fixes displayParameters on retina displays.

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.