Add a callback for modifying the displayed queues on the quicksearch prefs

This also lets the callback skip the ShowTicket rights check or specify
a different right.
Merge branch '4.0/quicksearch-prefs-callback' into 4.0-trunk