Added a simple interface for the UI and one implementation class
(CursesUi).