Added handling of callback parameter for all API functions and user parameter
for products-query.