A node.js based application server for IOT applications and home/industrial automation