A New OS Architecture for the Internet of Things