Dashboard statistics should use 'period' as the date limiter

The statistics module on the dashboard was using the incorrect query parameter
'stop'. This meant that the module was loading all tickets from the report start
date to the present day. This commit fixes this by using the 'period' parameter
instead.
oops: Fix profile edit when self registration disabled
Merge pull request #1345 from mattkirman/statistics-use-period

Dashboard statistics should use 'period' as the date limiter

Reviewed-By: Jared Hancock <jared@osticket.com>
Merge remote branch 'upstream/develop-next' into develop

Conflicts:
	include/client/header.inc.php
draft: Allow clients to delete their draft
bug: Custom ticket statuses

Add order by method to ticket status list to return appropriate sort columns
Delegate __get method in CustomListHandler to the parent list
Merge pull request #1396 from protich/issue/custom-ticket-status

bug: Custom ticket statuses

Reviewed-By: Jared Hancock <jared@osticket.com>
Merge pull request #1392 from greezybacon/issue/1363

draft: Allow clients to delete their draft

Reviewed-By: Peter Rotich <peter@osticket.com>
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