first commit
Merge branch 'write-ui-as-plugin' into winsupport

Conflicts:
	todo
	tui/userinterface.py
unicurses moved
rename lib directory
manually handle curses.wrapper settings
curses.error catches changes to general catches
reset of term settings substituted by endwin() call