libdasc/editor: Keep editor status in struct, not global
libdasc/editor: clean up Init a little bit
libdasc/editor: Make terminal fd a parameter of Editor