Change some server code, and added chat client using curses.