Added Client

Added a node.js client and fixed errors in server app.