introduce a configuration class

Introduce a configuration class for the client. Add specs for it as well.'