node.js server - door state REST interface as well as socket.io web app server