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.

The previous code didn't cleanup the branches which were deleted on the server. I will add a comment here.