few performance changes and inclusion of socket.io and clustering