Improving Service Management in the Internet of Things