Polyhydroxyetheresters from resin acids