The functions stretch a surface based on the first row/column. This
looks better for the widget borders as scale_surface and should be
faster (not tested). Added the option to the widget library to use
these functions and convert the window borders to use the new option.
- panel no longer decends from a grid but contains one, give less problems with
the functions with the same name.
- flags are read from the .cfg file.
Still more testing and some cleaning up is required.
Cleaned up some std::cerr to use proper logging.
Rather ugly proof-of-concept to get the cursor working in a
text_box. This still needs quite some polishing but the basics work.