Extract ErrorHasher to make it easy to spec #log_message

[#62361748]

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
retrofit specs for ErrorHasher

[#62361748]

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>