Rework client configuration handling. Would be better with some options object
but atleast this does not expose config structure to the modules.