Don't close tmp files twice
Split testing and dev modes
Display contact UI for failed PANDA exchanges.
Add minor comments
PANDA cleanups.

  * Use the Tor SOCKS address from the main Client.
  * Remove debug printing.
  * Use the canonical card stack for key agreement.