Add a SHA newtype and Binary and Hashable instances
Restore missing #ifdef's for Shelly