Added search functionality with Sunspot, fixed pagination bug