Normalize template name for windows support

Replace backslashes in the template name with forward slashes, so
client-side templates can reference templates with forward slashes. The
rationale is that the client should not have to change depending on the
operating system the server is running on. On windows, the template names
will have backslash seperators between the path parts, and on other OSes
it will be forward slashes.