Adds Directory.Path.hashCode so that it works properly in a map/set.
Adds Directory.Item so that permalinks can be created in Java without using the template path script APIs.