Selling a primary residence can net thousands in capital gains deductions. But you need to gather the evidence.