live-server: rework opts and publish ack handling.