Statistics for Middleware for the Internet of Things, Design Goals and Challenges