when uploading a layer, it might take longer than 4 seconds in which cas...

when uploading a layer, it might take longer than 4 seconds in which case the previous code would add the layer to geoserver but all steps that followed in geocode would fail. this code checks every 2 seconds and waits as long as 1 min for upload to complete. needed for slower server, busy server, server that was recently started, or larger data.