Using mktemp to generate temporary filenames.
Now script must be run with first parameter being the geoserver URL.
(no "usage" instructions or option or anything fancy - I think this is sufficient for now).