Fixing XSS for user registration
Further escaping of user inputs
further escapes on templates
Merge pull request #435 from TheSerapher/security-fix

Security fix