Add CUI front end.

Signed-off-by: Yusuke TAKEI <sync.outerphase@gmail.com>