Add windowCloseRequested() support

Change-Id: If97c7b50efc7bf01095cb4a7138208ab2c6b2e9b
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Pass popup geometry along for new window creation

Change-Id: Ideefbf272d0affa3f53c5795b779f1bfc9c9bf70
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Return the physical screen's geometry

This is exposed through JS, and sometimes used to center popups and
so on. Exposing the virtual geometry in the case of multi-screen
setups can lead to quirky behavior.

Change-Id: I4fe395dd2a19e5c96d79a33ed6ca08bed9e3d086
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>