Updated ncurses_client; added better error handling.

Added the new ncurses_getline to ncurses_client.c. Also added better error handling to nurses_getline() in ncusres_client.c upon out of memory errrors. Added better error handling to ncurses_client as a whole as well, including properly defined error code numbers instead of the previous magic numbers.