itd: Replace CItdFileTree with CHPKTreeWriter

This implementation looks slightly better (and may be, or not be, more efficient).
It is not finished, however.
itd: Update format

Changed hastable entry size (now it is a power of two). Changed tree
header layout, so it is consistent with other tree nodes.