Fix several XSS vulnerabilities

In both the client and staff interfaces, where the URL and request
parameters were echo'd back without any escaping
Fix XSS vulnerability in account registration
Merge pull request #1026 from greezybacon/issue/various-xss

Fix various XSS vulnerabilities

Reviewed-By: Peter Rotich <peter@osticket.com>