code works, needs love with libs / dependencies

tested with sample in a mini tc installation
code works
tests pass
I hate streams and the xpath people are crazy stream closers
I'm not sure if the current approach (100% based on / assuming that
descriptors are always published, which also means that a first
publishing build is mandatory) is workable