I have begun the process of simplifying the layout logic. Layout handlers now need to set the dimensions of a window and not worry about the details of drawing them.

This also makes resizing possible.