Towards a software-defined Network Operating System for the IoT