Item13125: More CGI changes

Note, extensions  not compatible yet with Foswiki 1.1.x