Redirect directly to a group if only one result.

If there's only one (exactly-matched) result when searching for a group,
and the user can view said result, let's avoid another pageload + click,
and provide a little bit better UX by redirecting right to the one
match.

Only do this if we're NOT handling a JSON request, so we don't break the
API.
Redirect directly to a user if only one result.

The idea of this commit is EXTREMELY similar to f7e4422.

If there's only one (exactly-matched) result when searching for a user,
let's avoid another pageload + click, and provide a little bit better UX
by redirecting right to the one match.

Only do this if we're NOT handling a JSON request, so we don't break the
API.
Merge pull request #31 from fedora-infra/feature/instantsearch

Provide a nicer UX while searching.