handle browser window resize

* `this.on("resize", function(event)` is send with `{ width: ... , height: ... }` as an event
* if `settings.fullscreen === true` then `this.width`, `this.height` and canvas DOM element width/height are updated as well