Update class.mailparse.php

Best version of https://github.com/osTicket/osTicket-1.8/pull/348

static keyword added to enable strict test mode.
Update run-tests.php

Allow tester to run single test by specifying it on command line: php run-tests.php TestMyThing etc.

Still works for normal tests.
Create test.header_functions.php

Creates a regression test for the parsePriority function, as suggested by GreezyBacon https://github.com/osTicket/osTicket-1.8/pull/348#issuecomment-31326865
forms: Fix corruption of company name on new ticket

New ticket by staff would cause the %{company.name} variable to be
incorrectly replaced as the user's name in email templates.
Partially revert 37b8d549d610c

That patch introduced a bug where the list of dynamic fields for a form is
always empty
Merge pull request #1002 from greezybacon/issue/company-name-new-ticket-email

forms: Fix corruption of company name on new ticket

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1004 from greezybacon/issue/979

Partially revert 37b8d549d610c

Reviewed-By: Peter Rotich <peter@osticket.com>
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 phone number field
Merge pull request #1025 from greezybacon/issue/various-xss-18

Fix various XSS vulnerabilities

Reviewed-By: Peter Rotich <peter@osticket.com>
pass variable by reference
Merge pull request #1037 from greezybacon/issue/signal-byref

signals: pass variable by reference

Reviewed-By: Peter & Jared
Merge pull request #491 from clonemeagain/#348

Rewrites Mail_Parse::parsePriority function

Reviewed-By: Peter & Jared
mail: Force *nix line endings with Suhosin
Merge pull request #442 from greezybacon/issue/202

Use Unix style line-endings for Windoze mail()

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge remote branch 'upstream/develop' into develop-next

Conflicts:
	include/class.dynamic_forms.php
lint: Fix various pre-release issues