added window.h
use LoonyWindow instead of TextBuffer where possible
added loonywin_get_buffer
use loonywin_get_buffer instead of accessing the buffer directly
Merge branch 'ui-improvement'