Making a new TUI editor maybe

Move all the stuff into lib


Author dneaves Date Commit Parent 040ab8c1