Start the client user interface

This is the first commit for the UI and is
quite primitive. Curses is initialised and
there is rudimentary support for switching
to command mode and entering a command.