allow comments in console scripts
syncrhonize console command progress listener
Avoid possible lose of nodes when creating leaf trees

Use a sorted list instead of a tree set to create a leaf tree out of a
collection of feature/tree nodes so in the (not so?) unlikely event that
NodeStorageOrder hashes (compares) two nodes equally the TreeSet doesn't
discard one.
track metrics for database close
Close remote repo in functional tests once initialized, can lead to OOM