Very big update to use gettext() on all strings for i18n. Also in this update: XSS prevention.