Added pagination support

search now takes two additional parameters: page and results-per-page that control which slice of the results to get. 
Pages start at 0.