Qt and Blackberry port

Fix keyboard input on Blackberry and enable on Qt frontend.
Make Qt open a window instead of fullscreen for non-mobile systems.
Make the window resizable (updates pixel_*res and dp_*res).