Add a transaction builder for replacing the contents of a node

Change-Id: I69d362c4694104313dd2634434eddfbaf9435b22
Merge "Add a transaction builder for replacing the contents of a node"