Decoupling client creation from actual config calls

Client creation should be decoupled from the config calls
and always passed as parameter. Adding deprecation for now
it will be deleted later.

Unification of client creation across all config functions.

Change-Id: I26b1d42fffcd678ca5b40174b3f3ac7fc356c5a4