Troop makes a good point (eh, pun unintended), on when points pay payoff. If I take the difference in "fees" in the bankrate example, $8659 - $1264 = $7395. I would take the difference in the two payments, $400k loan amount, 5.75% = $2334 and 6% = $2398, a difference of $64. All you do is divide the $7395 by the $64, and it would take 116 months or almost 10 years for the points to break even. Not really a good deal. Sometimes it makes sense, sometimes it doesn't.
Points = prepaid interest and should be deductible. There is a gray area about origination fees not being the same thing, and are not deductible. IMO they are the same thing, but awgee knows the IRS better than I do.