Starting work on main editor mode.

Need to optimize rendering and saving of large text files.