Updated server daemon to use distinct states for each node (DISCONNECTED, CONNECTED, COLLECTING, ERROR).