Added initial ncurses port (+ beginning of web port)

I still need to optimize the ncurses drawing (the redraw looks really ugly because there is no buffering), but it works!