Fix splashscreen

* Resize the window to the splash bitmap size
* Close the window after 5 seconds
Draw toolbar asynchronously.

* It is much simpler to invalidate the toolbar and let the window thread
do the drawing, rather than trying to draw directly.
Fix mouse and keyboard input.

You can type some text now!
Convert main window to layout kit.

Now the toolbars can be properly shown/hidden.