GRADLE-1653: Added github method to RepositoryHandler

Straight-forward code plus tests for http://issues.gradle.org/browse/GRADLE-1653.