Make this a bit more stateless and resilient - fix setting the color on the badge text, fix getting the count from the x-cache-hits header (it's not always the last header), don't bother parsing the count