Added popular search module
Various minor fixes for search and other bits.