Handled terminal operation status updates for orphans.
Handled terminal operation status updates for orphans.

When an orphaned operation is transitioned from non-terminal to
terminal, the operation's resources must be added back to the agent's
total resources, while accounting for resource conversion if the
operation is successful.

There is an odd case where an orphan is transitioned to terminal
via an UpdateSlaveMessage (instead of UpdateOperationStatusMessage).
When this happens, the required resource math is actually done by
the agent.

Review: https://reviews.apache.org/r/69963

chhsia0/mesos,abudnik/mesos,gsantovena/mesos,kaysoky/mesos,chhsia0/mesos,Gilbert88/mesos,kaysoky/mesos,Gilbert88/mesos,gsantovena/mesos,reneploetz/mesos,Gilbert88/mesos,chhsia0/mesos,reneploetz/mesos,jpeach/mesos,chhsia0/mesos,gsantovena/mesos,reneploetz/mesos,kaysoky/mesos,Gilbert88/mesos,reneploetz/mesos,gsantovena/mesos,jpeach/mesos,kaysoky/mesos,dforsyth/mesos,dforsyth/mesos,kaysoky/mesos,gsantovena/mesos,gsantovena/mesos,dforsyth/mesos,Gilbert88/mesos,jpeach/mesos,chhsia0/mesos,kaysoky/mesos,dforsyth/mesos,kaysoky/mesos,chhsia0/mesos,abudnik/mesos,abudnik/mesos,gsantovena/mesos,abudnik/mesos,Gilbert88/mesos,chhsia0/mesos,dforsyth/mesos,reneploetz/mesos,reneploetz/mesos,jpeach/mesos,jpeach/mesos,Gilbert88/mesos,dforsyth/mesos,abudnik/mesos,reneploetz/mesos,abudnik/mesos,dforsyth/mesos,jpeach/mesos,jpeach/mesos,abudnik/mesos