Cells: check states on resize/rebuild updates

When the API cell receives instance updates, check the task states for
any resize and rebuild states.  Make sure to only apply them if the
current task state for the instance is what we expect.  This will fix
any out of order messages from potentially stomping on re-setting the
instance to ACTIVE/None on finish of the actions.

Change-Id: Id79e35e29170ac2b8f42a955cecaae3072aba09c
Closes-bug: 1249072
Merge "Cells: check states on resize/rebuild updates"