Emulate a terminal within meli. In the next commit it will be used to embed an editor in the composing tab. This is a non-complete xterm emulation that has some bugs.