Add rspec for testing
Add interface to configure library

It allows setting user name, password, logger and if required a new API url.