Added ws stream handlers and cleaned up http_server.js