Counterparty Risk and Funding (A Tale of Two Puzzles)