Various Web UI cleanups, fixes and polishing.
NodeD : wait for event handle instead of ugly Thread.Sleep