Properly escape CourseKeys and UsageKeys in html templates

Ah - mako. That helps.