ifpps, flowtop: Move ncurses init and end to common module

ncurses (de-)initialization is duplicated across flowtop and ifpps, so
move it to an own module and use it from both tools.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>