Properly escape CourseKeys and UsageKeys in html templates

http://docs.makotemplates.org/en/latest/filtering.html