createTicket respects alert/autorespond negatives

It was previously not possible to use the `alert` and `autorespond` flags in a negative way to prevent those two events, since the ternary operator would have used the `false` ternary value, which was `true`.  This corrects that by allowing the default of `true` to be used only when the `$data` array does not have the appropriate keys set.  Assigning `$data['source']` was altered to use the same formatting and caution against an undefined index error.
forms: Display current value if set to bool FALSE
XML supports false alert/autorespond, using isset

- Allows the string "false" to be used in the XML payload as the documentation demonstrates, and have that be interpreted as a boolean false.
- Switching $alert/$autorespond to use isset(), and forcing those variables to be type-casted to booleans.
Do NOT reopen closed ticket due to autoreply

Do not reopen closed ticket, if the system can reliably determine that the new message is an
auto-response/reply from the end user.
Ensure case-insensitive file extension comparison

Ensure that when generating the list of acceptable file extensions, that the list is lower cased, because the extension from the filename will be lower-cased before attempting to find the extension in the list of acceptable extensions.
lock: Set ticket lock on ticket-view

Since the automatic lock was being acquired but not passed to the autoLock
system, the automatically acquired lock was not being release on away
navigation.

This patch addresses the issue by passing the automatically acquired lock id
to the autoLock system on ticket-view page load and change the ::Init()
method so that the lock id is not cleared with the ::Init() method is called
by the page load.
faq: Ensure consistent formatting for all

Faq articles should be viewed in the .thread-body div in the client portal
like they are in the staff portal.
html2text: Avoid long, wrapped URLs in a tags
forms: Properly display staff/user field requirement
i18n: Oops hide erroneous "published" status for internal FAQs
orgs: Add support for organization variables

Allow usage of something like `%{ticket.user.organization.var}`
ui: Implement "enable canned responses" config option

This patch removes the selection of canned responses as well as the canned
responses navigation page from the ui when the canned responses feature is
disabled.
i18n: Fix display of language selection for new templates
staff: Ensure an active admin always exists
date search fix

This resolves #1570
i18n: Fix a couple of small things for setup UI
Correct set status on new ticket

This affects new ticket by staff as well as honoring the influence of ticket
filters on new ticket, where the status may be set to something other than
the system default. Even the system default may be influenced if it were set
to a closed state derivative.

So the concept is simple: the new status should be set using the standard
logic so that the closed_by staff member, date, events, and other
information is set as normally is when a ticket is closed.
Merge pull request #1435 from stevepacker/patch-1

createTicket respects alert/autorespond negatives

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1466 from greezybacon/issue/1460

forms: Display current value if set to bool FALSE

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1529 from protich/issue/autoreply+reopen

Do NOT reopen closed ticket on auto-reply

Reviewed-By: Jared Hancock <jared@osticket.com>