They don't have a chip on their shoulder. Necessarily. But they have a very rational concern that you, unlike your peers, are particularly likely to bolt. Many forms of compensation, including bonuses, training, and senior positions on teams, are viewed in terms of investments that pay off or lose depending on whether you're retained.
I wasted a year and a half or so of my career by accepting a counteroffer (I didn't really want to leave that badly) and getting marginalized.
That doesn't mean every counteroffer is bad, but I would be up-front and overt about the concern that the "counteroffer" you've been offered is really more of an "option" on you, so that you'll leave on the company's terms and not your own.
As part of their due diligence, they asked that person about working with me, and that person then proceeded to tell my boss that they heard I was looking for another job.
My boss then spent the next few months transitioning all of my responsibilities away to other managers, basically leaving me with no responsibilities.
Thankfully, I transitioned back to being a consultant, and all of them were fired; but you don't even need a counter-offer to be marginalized. Sometimes, just talking to another company is enough to do it. So be wary.
The person I worked with was apparently a really really good friend of the person I was interviewing, so I assume it just came up in conversation, like "Hey, do you know so-and-so. They're applying for a job here."
Amusingly, the guy actually did speak well of me to his friend, he just then proceeded to notify my boss that I was interviewing at another company.
Also, it tangentially led me to go back to doing technical work, which I much prefer. Having all my responsibilities as a manager removed forced me to decide what I really wanted to do at that point in my career. On the whole, I'd say it worked out for the best.
"Boss, I'd like to make $x."
"No."
"Boss, I'd like to make $x and Y will pay it."
"You got it."
It's very simple. You can't negotiate without options. Nothing personal. You won't hurt someone's feelings by standing up for yourself (unless he is very insecure).
Sorry, but that's just bullshit. Salary and skills are correlated very loosely. The salary spread among (roughly) equally skilled developers is enormous. It's up to you which side of spectrum to be on.
Everything else you were unhappy about before will still be true. They will now have a chip on their shoulder about you. And furthermore, part of the reason why they will pay more is that they don't have a replacement for you. But now that they know that you are a risk for leaving their top priority will be to have you transfer your knowledge, to hire a replacement, and then to fire you as soon as they feel that they are in a good position to.