Move latest article fetch logic in the capi module

This fixes also a bug on the search, when you go to page 2 and do a search, you'll see the results for page 2. Now instead you'll move to the first page.