Adapted to new xssp rest
Fixed some url-related problems that only show up when VASE is accessed through a proxy