Allow rebuild of node in ERROR and DEPLOYFAIL state

This patch allows nodes in ERROR or DEPLOYFAIL state to be rebuilt. This
allows operators have a chance of recovering a node should it go into
an error state while deploying or rebuilding.

Change-Id: Ia7d6b3b796357da83fdb4d40f92f18a502956aa2
Closes-Bug: #1354437
Merge "Allow rebuild of node in ERROR and DEPLOYFAIL state"