[WFLY-2558] fix patching test assertion
[WFLY-405] a bit simplified and generalized patching artifact tree walking and node handling
[WFLY-405] validate history before applying or rolling back a patch