Fixed up the refreshTokenHandler and added the CredentialsRepository + tests