Added per_page parameter to search api

In response to Issue #424. Adds a `per_page` parameter to the search api allowing for 1 to 100 packages to be returned, but defaults to 15 (as before).
you should check the request format here. Returning a JsonResponse when accessing the HTML version of the page is quite bad