STDOUT_FILENO is also from unistd.h

modularized the socket utils into socket_util

Conflicts:
	src/lib/socket_util.c
simple udp listener
use thread to listen
added debug_util
added more ansi esc seqs
it now can detect it is a new remote or not