Add dynamic node count HTTP response

Uses the connceted_node_count to return the amount of nodes to the
HTTP requests. Improve algorithm for sending NODE_ON/NODE_OFF to
the individual nodes by ID returned from the server.