First pass at removing JS gettext() in favor of server-side substitution.

[LMS-1680]
Use gettext instead of ugettext for Mako templates.

[LMS-1680]
Move back to having ugettext