[RFC] Abstract UI termcap

Implement a builtin termcap based on the old gui. This is how Nvim behaves when the "abstract_ui" termcap is activated:

- No data is written/read to stdout/stdin by default.
- Instead of sending data to stdout, ui_write will parse the termcap codes
  and invoke dispatch functions in the ui.c module.
- The dispatch functions will forward the calls to all attached UI instances.
- Like with the "builtin_gui" termcap, "abstract_ui" does not contain any key
  sequences. Instead, vim key strings(<cr>, <esc>, etc) are parsed directly by
  input_enqueue and the translated strings are pushed to the input buffer.

With this new input model, its not possible to send mouse events yet. Thats
because mouse sequence parsing happens in term.c/check_termcodes which returns
early when "abstract_ui" is activated.

On top of the new UI infrastructure, a remote_ui module was added. It enables
the implementation of remote UIs via msgpack-rpc.

This will replace #781 and is the beginning of a complete refactor of the UI layer
I think this won't ever happen because I basically copied this loop from gui.c in vim upstream. In any case, ui_write will be removed eventually so this is all temporary(I will add direct calls to ui functions instead of writing termcap codes with out_str)