mysqli: Allow specification of a unix socket

This patch allows for the specification of a socket in the database hostname
field, such as localhost:/path/to/mysql.sock
Merge pull request #864 from greezybacon/issue/mysqli-local-socket

mysqli: Allow specification of a unix socket

Reviewed-By: Peter Rotich <peter@osticket.com>
upgrader: Fix 1.6 banlist corruption on upgrade
Merge pull request #869 from greezybacon/issue/upgrade-banlist-corruption

upgrader: Fix 1.6 banlist corruption on upgrade

Reviewed-By: Peter Rotich <peter@osticket.com>
Honor ticket number in subject line without brackets

We introduced a glitch in 29b3714, which was the patch that introduced
matching on email headers other than the Subject.

I misinterpreted the original `preg_match()` regex, thinking that it was
requiring brackets. Looking at it again today, I see that it didn't. The
current one does, however, require surrounding brackets.

This patch also allows for extra letters or dashes between the `#` and the
ticket number. Eventually we should allow the ticket number itself to have
extra characters -- be formattable.

Fixes osTicket/osTicket-1.8#342
Merge pull request #873 from greezybacon/issue/subject-ticket-number

Honor ticket number in subject line without brackets

Reviewed-By: Peter Rotich <peter@osticket.com>
http: Legacy versions of IIS redirect incorrectly

(And newer versions don't seem to like the legacy code). This patch uses a
`Refresh` header for IIS versions prior to 7.0 (included with Windows Vista
/ Server 2008). Starting with IIS 7.0, the Location header should be
properly handled by IIS.
Merge pull request #874 from greezybacon/issue/iis-refresh

http: Legacy versions of IIS redirect incorrectly

Reviewed-By: Peter Rotich <peter@osticket.com>
Add underline button to redactor toolbars
Don't send attachments in staff alerts
Merge pull request #377 from greezybacon/feature/redactor-underline

Add underline button to redactor toolbars

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #379 from greezybacon/issue/no-attachments-to-staff

Don't send attachments in staff alerts

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #384 from greezybacon/issue/212

email: (Almost) always convert html on text body

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge remote branch 'upstream-1.7/develop' into develop

Conflicts:
	include/class.http.php
	include/mysqli.php