Actor-Oriented Programming for the Internet of Things