Orchestration framework for the IoT