Customisation of CGI.pm for Greenstone uses. Includes a genreate_error function for issuing error messages (either as plain text of XML depending on the CGI args) in for suitable for a web browser. Also sets gsdlhome.