Consistently handle emails

Whether HTML ticket thread is enabled or not, consistently handle the
processing of the email bodies
Support non-standard port numbers for MySQLi

Validate port during installation

Add help information about the non-standard port number to the popup tips in
the install screen.

Support MySQL 'localhost' connections using a non-standard port number.
Ordinarily, MySQL will ignore the port setting on *nix systems if the host
is specified as 'localhost'

Implements/Fixes #769
Add stub for built-in Exception class
Include category name and description in KB search
Label THIS_VERSION when packaged
Upgrade jQuery referenced on the staff login page
Merge pull request #775 from greezybacon/feature/mysqli-nonstandard-port

Support non-standard port numbers for MySQLi

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #781 from protich/issue/kb_category_search

Include category when searching the knowledge base 

Reviewed-By: Jared Hancock <jared@osticket.com>
Merge remote branch 'upstream-1.7/develop' into develop

Conflicts:
	include/mysqli.php
	include/staff/faq-categories.inc.php
	setup/tips.html
Fix deployment script

Fixes #20
Fix NOTICE errors from cli cron

Fix PHP NOTICE level errors for cron jobs executed from the command line

Fixes #4
Make help topic form optional
Add ticket and user fields to supported vars.
Remove phone_ext - phone field is overloaded with X123 as the extension.
Assume incoming JSON/XML posts are plain text
Make email template content valid HTML

Wrap the upgraded email template data in an HTML <div> element so that the
final content is valid HTML. This is useful for the mailer to identify the
message content as HTML
Provide delay on inline-image hover

This means that drive-by mouse hovers, where the user likely did not intend
for the hover to actually popup the banner with the filename and download
button, do not trigger the popup. This patch changes the popup effect so
that it requires a 500ms hover before the popup is shown.
Add M$ default styles for Outlook-generated email
Show lines closer together in the redactor editor
Show normal font-size in blockquote responses