Convert API to use new btcutil.Tx.

This is part of the ongoing transaction hash optimization effort noted in
conformal/btcd#25.