Added missing SERVER_SOFTWARE CGI environment variable.
Added option to modify querystring sent to actual script.
Merge branches 'server_software_fix' and 'query_string_support'

Conflicts:
	gateway-rewrite.js