echo-sd: Add CGI mode (WIP)