Many updates. Nonblocking sockets, daemonization, etc.