Add PolicyHash

Intended to be used for more robust change detection for static policy with
transitive inputs.