registry: add UnitHash to published UnitStates

This introduces a new field in UnitStates containing the string representing
the Hash of the associated Unit, to disambiguate between UnitStates published
with the same name but actually representing different Units.
Orrrr we can assume that getunitstate will always just result in a state removal and hence we don't need the hash