Display team badge on team page

On tag pages
![screen shot 2014-10-07 at 13 55 00](https://cloud.githubusercontent.com/assets/1492162/4542417/42f47346-4e21-11e4-993f-3b065e5af29b.png)
![screen shot 2014-10-07 at 13 54 10](https://cloud.githubusercontent.com/assets/1492162/4542415/42dad1a2-4e21-11e4-8671-b6b3022e591e.png)
![screen shot 2014-10-07 at 13 53 11](https://cloud.githubusercontent.com/assets/1492162/4542416/42e7d870-4e21-11e4-87cb-609b5fe241f5.png)

Will references always have at least one item? If it doesn't, using it as a function will throw a runtime error.