Add support for setting a node into readonly mode. Questions that needs to be answered are: - Should readonly nodes children be non-readonly?