Wallet Template: bugfix in ui logic for encryption
WalletTool: make raw-dump output a little more helpful.
Add ASSURANCE_CONTRACT_CLAIM/PLEDGE/STUB to the purpose field.
Add logging for output disconnection and reconnection.