api: Save original data before log and remove commented out deriv
api: Save original data before log and remove commented out deriv

peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag