live-server: rework live-server; start implementing /publish.