Fetching main branch now uses BB API 2.0
Fetching main branch now uses BB API 2.0

BB API 2.0 removes the dedicated endpoint for main branch. Instead,
``mainbranch`` becomes a field from the main repository endpoint.

felliott/waterbutler,CenterForOpenScience/waterbutler