Fix tx tool by allocating TxnSignature before signing
Clean up path.go, add tests, and add path/sendmax support to tx.go