[IMPROVED] Auto-escape all used smarty variables

http://www.smarty.net/docs/en/variable.escape.html.tpl

Addresses #1233
Merge pull request #1313 from TheSerapher/issue-1233

[IMPROVED] Auto-escape all used smarty variables