use passed in config instead of default config. This is to fix config in...

This constructor uses config builder to build a default config object, and use the passed in config object during creating the provider .  This results in config inconsistency between newly created client's config and client's provider's config. The fix is to use passed in config instead of default config to create the client.