Extended TicketSearch().

- Added CreatedUserIDs and Approved search parameters.
- Fixed POD.
- Code cleanup.