WIP refactor: change text buffer to use the Line struct for storing text.

Most of the UI and editor code is either commented out or not included
in the compile right now.  This is temporary while I get the basic
text code working again.