add preemptive auth to geoserver rest client

needed for geoserver 2.2.5, which returns HTTP 404 instead of 401