Return used transaction inputs from txToPairs.

These inputs will need to be removed from the stored utxos if the
transaction is sent and accepted in a block.
Fix issues found by golint and go vet.