Rework package isntallation (part 1).
Add type parameter to file/directory item.
Make hash optional for list of tool files in manifest.