After a long flight having to deal with the delay and hassle of immigration seems much worse than it is. I really hate it, and the comments here suggest others do too, but if you look at what we have to deal with objectively it's not really that horrible.
It feels weird for me to be defending them, because of the crappy experiences over the years, but when it comes down to it I think CBP are far more reasonable than they are given credit for because of the crappy environment it happens in. If you were calmly asked the same questions by a sweet guy or girl on a chaise longue while being offered champagne and strawberries, people would have almost no problem even though it's really the same thing without the elevated stress level.
Regarding Daniel - like others here I'm sure it's because cURL has been used extensively for bad purposes he was kicked off the ESTA program. Yes it sucks that they didn't let him know in advance, and they didn't have the smarts to figure that he had nothing to do with the bad actors.
For me getting a visa was a pretty easy process. The interviewer in my country was a smart political science graduate and everything went smoothly. An inconvenience for sure, but hey this is another sovereign nation, why should us foreigners expect to be able to march in without playing by their rules, even if we don't agree with them.
Don't get me wrong - this situation sucks for Daniel and US immigration has massive room for improvement.