Mark tickets overdue which have no SLA

If a ticket has a due date and does not have an SLA set, the ticket would
never transition to overdue. This patch addresses an SQL flaw preventing the
ticket from being transitioned.

Fixes #757
Support incorrectly labeled us-ascii charsets

Some email clients (names omitted to protect the innocent) advertise the
encoding as us-ascii when iso-8859-1 was really implied. This patch allows
the two charsets to be interchangable.
Address various lint related bugs, typos, and hints

Including adding support to the TCL uninitialized variable reader to ignore
class-static variable access as well as detect inline functions and their
closure arguments.
Rewrite advanced search for better performance
Index form_entry on (object_type, object_id)
Merge pull request #11 from greezybacon/issue/lint

Address various lint related bugs, typos, and hints

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #13 from greezybacon/issue/entry-index

Index form_entry on (object_type, object_id)

Reviewed-By: Peter Rotich <peter@osticket.com>
Add deployment guide to project README
Emit a backtrace on db_error logs
Merge pull request #770 from greezybacon/issue/us-ascii-not-really

Support incorrectly labeled us-ascii charsets

Reviewed-By: Peter Rotich <peter@osticket.com>
Reduce cost of deleting orphaned files

Previous explain included a nested sub-select, which exponentially increased
the count of the rows to be examined. This patch eliminates one layer of
nesting on the sub-select and dramatically increases the performance finding
orphaned files.

Fixes #773

References:
http://www.osticket.com/forums/forum/osticket-1-7-latest-release/troubleshooting-and-problems-aa/9446-version-1-7-much-slower-than-1-6
Support updating the source of the ticket

Fixes #772
Make Crypto::random() more reliable on Windows

This patch makes openssl the preferred source of random data on Windows and
will only use mcrypt_create_iv on PHP 5.3.7 and newer.

Fixes #771
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 table prefix to places missing in the query
Use http::redirect(...) which exits on redirect.
Merge pull request #779 from protich/develop

Die on redirect

Reviewed-By: Jared Hancock <jared@osticket.com>
Use http redirect
Merge pull request #19 from yakatz/patch-1

add table prefix to places missing in the query

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #18 from greezybacon/issue/db-error-backtrace

Emit a backtrace on db_error logs

Reviewed-By: Peter Rotich <peter@osticket.com>