[chronik] add scripthash option to the various script endpoints
Summary:
After this diff, all the existing script endpoints have a new script_type=scripthash option, except for the utxo scripthash endpoint will be dealt with in a separate diff, as it requires decompression of the script which is not trivial (decompressing p2pk scripts may require secp256k1)
A user can now fetch a script's history and utxo's by querying it's sha256 hash.
Depends on D16827
Test Plan: ninja check-functional
Reviewers: #bitcoin_abc, tobias_ruck
Reviewed By: #bitcoin_abc, tobias_ruck
Subscribers: Fabien, tobias_ruck
Differential Revision: https://reviews.bitcoinabc.org/D16937