Handle name outputs properly in the wallet.

Ignore name outputs for GetDebit/GetCredit (so that getbalance doesn't
count them) and extend GetAmounts to include them.  This makes names appear
in listtransactions and gettransaction.