Implement helpers to keep node ressources in sync

Included feedback from first review.
Seems to work in general.

Issues:
- Nodes that are currently offline are also counted. Those
  nodes won't ever transition to finished, and the waiting method
  always fail. Does not happen when all nodes are online

- I think I got the revision usage wrong, the way it is handled now
  is not much different from my original way