GUI-568: Modify how curly braces are escaped (and unescaped) in templates

Also remove unnecessary escaping in JSON and obsolete escaping template extension code

https://eucalyptus.atlassian.net/browse/GUI-568
Why does the escaping not need to be done anymore?