added RawTransaction::hash_from_raw and RawTransaction::hash_from_txid

also added usage to the example as form of 'documentation'

I was confused by the `txid` from `Transaction::decode` being in a different endian than the transaction hash (eventhough I already ran into this before ... had forgotten about it again).
Figured I'd add a method to get it from a raw transaction.