added server.js for connecting with server and slightly modified deployd.js script