test: implement static funcions and catch blocks

Allow the php source analyzer scan for $this in static functions as well as
properly handle the exception variable inside catch blocks.
html: Reduce dependency on htmlchars

Previously, html-like content would have to be run through Format::htmlchars
before being passed to Format::sanitize, because things that looked like
invalid html content would be removed.
Fix image corruption on FAQ save

Fixes #198
Fix image corruption issue on pages
Merge pull request #199 from greezybacon/issue/198

Fix image corruption on FAQ save

Reviewed-By: Peter Rotich <peter@osticket.com>
pdf: Fix incorrect conversion of closed-by name
Merge pull request #204 from greezybacon/issue/201

pdf: Fix incorrect conversion of closed-by name

Reviewed-By: Peter Rotich <peter@osticket.com>
test: Add stubs for DateTime classes
Merge pull request #205 from greezybacon/issue/variable-analyzer

test: implement static functions and catch blocks

Reviewed-By: Peter Rotich <peter@osticket.com>
install: Fixup template install on MySQL clusters
Merge pull request #206 from greezybacon/issue/cluster-install

install: Fixup template install on MySQL clusters

Reviewed-By: Peter Rotich <peter@osticket.com>
forms: Fix validation error display on web submit

Fixes osTicket/osTicket-1.8#203
forms: Don't assume client date time is parseable
Re-enable user identification by reply-to email header
Merge pull request #207 from greezybacon/issue/203

forms: Fix validation error display on web submit

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #208 from greezybacon/issue/reply-to-email

Re-enable user identification by reply-to email header

Reviewed-By: Peter Rotich <peter@osticket.com>
thread: Honor html setting when concatenating canned response
html: Fix normalization of stuff like <html>
Merge pull request #210 from greezybacon/issue/canned-reply-break

thread: Honor html setting when concatenating canned response

Reviewed-By: Pete Rotich <peter@osticket.com>
Merge pull request #211 from greezybacon/hotfix/revert-keep-bad

html: Fix normalization of stuff like <html>

Reviewed-By: Peter Rotich <peter@osticket.com>