Changed HTTP daemon to socket-based daemon