[net] add initial support for reopening logfile

This patch adds initial support for reopening logfile while the program is running, which is useful for logrotate task:
- Rename the current logfile by logrotate or manually
- Send signal USR1 to the ccnet-server or ccnet process
- Go back to normal task

You need to use EV_SIGNAL | EV_PERSIST