curl: vstat: PUT stats to a given url

Works mostly fine, still needs some tweaks here and there.