Make CustomTagModule safe (remove Mako) [SEC-609]
Make CustomTagModule safe (remove Mako) [SEC-609]

Prior to this commit, it was possible for course authoring teams
to import and execute Mako templates using the obscure "customtag"
tag (CustomTagModule). Since Mako templates can run Python code
(e.g. imports, database queries, etc.), this would give a course
team the ability to execute arbitrary, unsandboxed code on the
server.

This commit converts CustomTagModule to use the Python library's
string.Template instead. This should be broadly compatible with
the most basic and common usage of customtag, which is simple
variable substitution in the style of ${var_name}.

stvstnfrd/edx-platform,angelapper/edx-platform,eduNEXT/edx-platform,EDUlib/edx-platform,msegado/edx-platform,stvstnfrd/edx-platform,EDUlib/edx-platform,mitocw/edx-platform,msegado/edx-platform,eduNEXT/edunext-platform,msegado/edx-platform,EDUlib/edx-platform,edx-solutions/edx-platform,angelapper/edx-platform,cpennington/edx-platform,edx/edx-platform,eduNEXT/edx-platform,ESOedX/edx-platform,msegado/edx-platform,stvstnfrd/edx-platform,arbrandes/edx-platform,edx-solutions/edx-platform,EDUlib/edx-platform,arbrandes/edx-platform,mitocw/edx-platform,appsembler/edx-platform,edx/edx-platform,angelapper/edx-platform,appsembler/edx-platform,eduNEXT/edunext-platform,arbrandes/edx-platform,eduNEXT/edx-platform,cpennington/edx-platform,appsembler/edx-platform,eduNEXT/edunext-platform,ESOedX/edx-platform,arbrandes/edx-platform,appsembler/edx-platform,eduNEXT/edunext-platform,ESOedX/edx-platform,mitocw/edx-platform,cpennington/edx-platform,edx/edx-platform,cpennington/edx-platform,eduNEXT/edx-platform,msegado/edx-platform,ESOedX/edx-platform,edx/edx-platform,mitocw/edx-platform,stvstnfrd/edx-platform,angelapper/edx-platform,edx-solutions/edx-platform,edx-solutions/edx-platform