Chat reform: - rework xotcl-core chat machinery to return its responses through JSON and include information about active users - depend on xowiki instead of xotcl-core only - exploit xowiki "Comet" server push implementation when the browser supports it - reduce code duplication - drop plain HTML chat - reduce hardcoded styling - minor cleanups
Avoid javascript eval idiom as CSP will refuse to execute when unsafe-eval is disabledThis requires moving to a more approprate JSON parser... which is also pickier regarding single quotes, so I had to rework JSON encoding to please it.