Added credentials class and unit tests to separate credentials from other api level concerns