Forgotten type declaration
Added a very primitive search function
Moved some ncurses related functions from appstate to a new library
Refactor screen drawing functions into a separate file
Refactored search command line display into a callback function