changed to socket.io; added stream-generator classes;