To answer your question about if Cooper/dogs in general do things because they are "mad" at us, here is a quote from a book I highly recommend, The Culture Clash, by Jean Donaldson:
"It seems that most people still buy into the Walt Disney dog:he is very intelligent, he has morals, is capable of seeking revenge and planning, he solves complex problems, he understands the value of the artifacts in Walt's home. Nobody wants B.F. Skinner's dog, the black input-output box who is so obviously not the furry member of your family. It's been marketed all wrong, I think. Skinner was right but has gotten bad press...Here is an example that illustrates the difference:
A dog has been reprimanded every time he has been caught chewing furniture. Now the dog refrains from chewing furniture when the owner is home but becomes destructure when left alone. When the owner comes home and discovers the damage, the dog slinks around, ears back and head down.
Walt's view: The dog learns from the reprimand that chewing furniture is wrong. The dog resents being left alone, and to get back at the owner, chews the furniture when the owner leaves. He deliberately, in other words, engages in an act he knows to be wrong. When the owner comes home the dog feels guilty about what he has done.
BF's view: The dog learns that chewing furniture is dangerous when the owner is present but safe when the owner is gone. The dog is slightly anxious when left alone and feels better when he chews. Later, when the owner comes home, the dog behaves appeasingly in an attmept to avoid or turn off the punishment he has learned often happens at this time. The owner's arrival home and/or pre-punishment demeanor has become a predictor: The dog knows he's about to be punished. He doesn't know why."
Ok, I know that is not the problem you are dealing with, but it still answers the question. Dogs don't have the ability to do things out of revenge. They don't have the capacity to think about our internal states, only how those internal states manifest themselves and affect them. This is actually the first couple paragraphs in the book, and at first I was a bit taken aback, but once you get into it, and realize what Jean Donaldson is saying it really isn't as bad as it sounds, and it makes perfect sense. I hope this helps! Sorry this is so long!
Jenni & Layla