Allow setting default branch

Also deals with empty repos with message indicating it is empty