bitcoin-tx: Add the "-txid" option and add hex-encoded transaction to JSON

Add option to include computed transaction hash in output when hex-encoding is selected.

The hash gets output already for JSON.

When selected, the hex tx hash will be output on another line so as to not break things that are already scripted to the output of this utility.