Changed the score graph legend to toggle race visibility.

Other changes as well with how data is put into the template and how the permalink is constructed.