Change cgi.parse_qs to urlparse.parse_qs as it's deprecated

cgi.parse_qs has been copied to urlparse.parse_qs
(https://docs.python.org/2/library/urlparse.html#urlparse.parse_qs)
Add pagination to search results, default 20 results per page

For example, if you search for `q=introduction`, you'll get 5 results.
You can force pagination by searching for `q=introduction&per_page=3`.
You will get 3 result items instead of 5 and you can fetch the remaining
2 items by doing `q=introduction&per_page=3&page=2`.

Search results `query` will now contain the `per_page` value and `page`
number.  Search results will only return 20 `items` by default.
Everything else in the search results remain unchanged.
Merge pull request #227 from Connexions/search-pagination

Search pagination