More work on handling projects whose main branch is not 'master'.

* tasks.py (update_project): Construct API call for branch info correctly.
  With @evz.