A context-sensitive infrastructure for coordinating agents in ubiquitous environments