Update git refs

1) Update remoteRefs whenever fetched.
2) Request remote_refs async on "Git Branch" action. Local copy is returned immediately.

fixes #2346 

@dinhviethoa PTAL thanks.

Ok. Same first question then.
Does it mean that when I open the branch dialog, some branches will only show up after I opened it the second time?