Autocomplete suggestions functionality

Several refactors to the product-api code