Add t() function and little more cleanup

* missing t() function
* change htmlspecialchars to h (UTF8 friendry)
* lack of text sanitizing