Add AuthBackend.search_users() hook function

As discussed in review 5503, this adds an overrideable function that can be
used to replace the default user-search filter.

Testing Done:
All tests pass aside from a few VCS-dependent ones, which are skipped.

Reviewed at https://reviews.reviewboard.org/r/5635/