Created a class "Window" representing lencurses windows, handling their
own state and moved a ton of code from the visual manager (vm.lua) to
the window class. Operating on lencurses windows is much cleaner now.