add util.c
update cmd_system to delete NULL terminal char
add socket function
add func to generate client ID
add common funcs