WORK IN PROGRESS - basic (and messy) implementation of CGI (RFC 3857)