move sources around
move implementation to application.cc
and hide ncurses include