Added support for setting the uid and gid of the CGI process.