* refactor(tui): group source files by feature * refactor(tui): split app and gateway responsibilities