Towards Unified Control of Networks of Switches and Sensors through a Network Operating System