create node settlement extension

This extension can be used to decide where to attach a newly created
node.
Could you remote the assignation from the `if` block?

````
$documentRoot = // ...

if (!$documentRoot) {
   throw new Exception(...)
}
````