Major reorg

- Rewrote curses window routines.
Merge branch 'feature-derwin'