1. A method of control of collaborative devices by a service gateway, the method comprising: providing at least two collaborative devices, each collaborative device comprising a client device and an embedded Java server, each collaborative device coupled for data communications to the service gateway; providing a registry service in the service gateway to which the collaborative devices are also coupled for data communications; providing in the service gateway at least one registry table, the registry table comprising registry records, each registry record representing a capability of a collaborative device, the registry records comprising data elements describing, for each collaborative device, capabilities, tertiary relationships, and network connectivities; providing in the service gateway a service bundle of OSGI-compliant Java servlets comprising at least one predetermined algorithm for controlling the collaborative devices, each predetermined algorithm dedicated to a particular tertiary relationship; and controlling by the service gateway the collaborative devices in accordance with the predetermined algorithm, wherein controlling the collaborative devices in accordance with the predetermined algorithm further comprises: finding a registry record bearing a set point for the particular tertiary relationship; reading from a client device a sensor value of the particular tertiary relationship; comparing the set point and the sensor value, wherein the comparing produces a comparison result; finding, in dependence upon the comparison result, a registry record having an identified capability appropriate to the comparison result for the particular tertiary relationship; and effecting through a client device the capability identified in the found registry record.