Preserving sandbox deleted task history (part 2: state machine).

Bugs closed: AURORA-261

Reviewed at https://reviews.apache.org/r/20058/