[bug 864955] Public search.

There are some tests I need to write for public search and public group pages. Meanwhile @sancus you think the code so far is r+?