fix Issue #457

Fix #457.  Remove the links from old address after updatelayers. Respect different host in geoserver and geonode