A Web of Things Framework for RESTful Applications and Its Experimentation in a Smart City