Building the Web of Things: With examples in Node.js and Raspberry Pi