Allows creation of new tickets "asStaff" though the API

adds new "asStaff" value to JSON object, and if set, initializes the $thisstaff and $cfg objects before calling Ticket::open ... resulting in the ticket being created by the defined Staff.

If "asStaff" not present, ticket is created by the user, as per normal.