Replaces passing of client for passing of configuration

- clients can easily be created from a configuration
- configuration is a simpler object to pass around