Github authenticate API requests

Added a function to authenticate Github requests using either the logged-in user or the application's credentials to avoid the Rate Limiting issue raised in #234.