Preload ajax suggestions in batches

This involves a change to the api interface