improved error handling
simplified recv_first_line()
daemonizing
default port 8080