Allow global variable $wgSearchResultsPerPage to control result number per page
add test to support global variables controlling page length
Merge branch 'bugid-97658' into dev