Allow credential config to be passed into clients

Fixes #72