ui_newt: add rest of skeleton for main UI
utility: add charpp_free
convert code blocks to use charpp_free where they are equal