CGI complete
Working version, including dynamic mime types.