XCOMMONS-511: Add concept of log tree
* add helpers