Console: port the curses console, waiting for a rewrite (ugly though)
Remove more dead code