Replace SignatureHash() with class TxSignatureHasher

Is built on top of #4890.
May interfere with #4981.