Update class-wp-github-client.php

Added app name as agent and a check credentials for multiple purpose