Added per_page parameter to search api
Merge remote-tracking branch 'phpmycoder/packages_per_page_search_api'
Silently reset per_page within the range if not a json req, refs #425