Fixed prominent XSS vulnerabilities
Merge pull request #35 from shadikka/master

Added escaping to templates to protect from XSS by privileged users.