Decentralized Control and Adaptation in Distributed Applications via Web and Semantic Web Technologies