files: Cleanup orphaned files on autocron
forms: Fix validation errors for field `name` matches

For fields with `name`s which are the same as other fields on the new ticket
form (such as `time` used with the new ticket by staff form), ensure that
data from the fields outside the main ticket form ("Ticket Details") is not
mingled with fields inside the form.

Since this is only a problem for web requests, and specifically new ticket
by staff requests, this patch only applies the field name to data matching
for non-web requests.
Merge pull request #1399 from greezybacon/issue/similar-field-names

forms: Fix validation errors for field `name` matches

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1398 from greezybacon/issue/1391

files: Cleanup orphaned files on autocron

Reviewed-By: Peter Rotich <peter@osticket.com>
oops: Always strip embedded images unless
Default max file size

Determine and set a reasonable max file size on install
Remove file extension restrictions - transition to mime types
InnoDB tables for search indexing where possible

Especially on Galera clusters, search indexing with MyISAM tables will cause
unstable clusters and loss of data. For standalone clusters using MySQL 5.6
or MariaDB 10.0, the database default table storage engine can be used,
since either support fulltext indexing.
Merge pull request #1416 from greezybacon/issue/cluster-search

InnoDB tables for search indexing where possible

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1407 from protich/issue/max-file-size

Default max file size

Reviewed-By: Jared Hancock <jared@osticket.com>
Merge pull request #1412 from greezybacon/issue/1259

oops: Always strip embedded images unless

Reviewed-By: Peter Rotich <peter@osticket.com>
Fix a few possible errors and warnings
oops: Fix corruption of some <link> tags on deploy
search: Escape non-word chars for search queries
Merge pull request #1423 from greezybacon/issue/mysql-search-quote

search: Escape non-word chars for search queries

Reviewed-By: Peter Rotich <peter@osticket.com>
Rollback to autocommit, except for sequence  iteration

Keeping the transaction active for the entire request increases the
likelihood of a deadlock on Galera clusters.
forms: Fix interpretation of custom list data

Prior to osTicket v1.9.4, drop down lists only allowed for a single entry.
After upgrading to 1.9.4 the database data for drop downs changed to allow
for multiple entries. However, the old data format was not properly handled
by the SelectionField::to_php() method which handled interpreting and
upgrading the database data.
forms: Empty regex for TextboxField is an error
forms: Fix empty value default for ChoiceField
forms: Some browsers require windows.FileReader
i18n: Remove double download of language pack for build