add daemon support
remove config file support

We can use command line option for test, and use openwrt uci api for
daemon. So config file is not needed.
update cmdline option
use syslog framework

Replace my hand-made logs with syslog.
tweak the help message
simplify poll related functions
add sock_err helper function
remove unneeded struct member