Adds ticket searching.

Users may now search tickets in the dashboard. Standard users may
search by subject, department, priority, created_at (before/after or between
specified dates) and status, while admins get an additional field based on the
user who submitted the ticket.