git pull before potentially switching branch.

If we don't git pull first, then the branch-switch will fail, because the branch
won't exist yet.  D'oh.

Pull changes first, then switch branch (if asked to), then restart the app.