Setup delayed configuration of the api client
Better error handling and callbacks