initial commit. basic window/surface refresh, sync with the main thread
ok