libdasc/editor: Editor now keeps a buffer. writer.go integrated into editor.go