Add support for non-infinite-scrolling pagination

Set the "numPages" value in the results to the total number of pages. Takes precedence over the "more" value.
Added toggle selection behaviour
Merge branch 'pagination'
Merge branch 'toggle-selection'
Remove selected items when they are middle clicked
Merge branch 'middle-click-close'