I will say that some of that is because of Joss Whedon, the director and a writer who knows how to build witty dialog into a narrative like few others I've seen. God knows his politics and personal religious beliefs are all wrong, but he is brilliant when it comes to character development and dialog.
I also loved his "Cabin in the Woods" which isn't doing nearly as well as Avengers.