dist: add some dependencies
flat: handle broken symlinks
initial merkle tree build function
ignore db