bug 1188833, optimize team page.
bug 1188833, optimize team page.

Refactor more queries outside of the for loop and gather the data
upfront.

Pike/elmo,Pike/elmo,mozilla/elmo,mozilla/elmo,Pike/elmo,mozilla/elmo,Pike/elmo,mozilla/elmo