Add CGI support for pages and graphs