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 #1565 from greezybacon/issue/1531

Record closed-by if opening a ticket with state closed

Reviewed-By: Peter Rotich <peter@osticket.com>