In which we take the default branch from the github api rather than default it to "master"

why did I no do this sooner?
@turtlebender