Whedon, from what I understand, answers to Feige and helps keep everything "in line" with his vision for the first three Avengers films, but Gunn helped co-write the GotG script, and that helped with him getting the gig. He must have really impressed with his vision because he hasn't done much in the director's chair before now.