comms/BasicNode: now a class; encapsulation++, improved thread safety