Fix #83, improve badges

This moves most of the badge fetching away from the view and caches the
different badges so that it is not necessary to access the file on disk
each time.
Add @never_cache decorator to the badge view
Use .first() instead of [0] when getting build for badge
Merge pull request #93 from frigg/issue83-improve-badges

Fix #83, improve badges