Major overhaul.

Replaced the ScreenBuffer with a new class which uses strings instead of
tables and scrolls faster (without recursive table copying).

The data shared by all windows and system which relate to the OS are now
centralized in library files.