Add client lib and tests for getting repo