Add single Resource regeneration OnDocFormSave

Also add regenerate_useragent property to allow configuration of User-Agent header sent by curl to trigger regeneration of the static files