Why isn't thanos in avengers 2?

Joss Whedon, the director, has hinted that he is setting Thanos up to be the main villain in The Avengers 3.