Use dropdown instead of one big box for branches.
Use hashmap.
Don't leave out master branch and only show bit after remotes/blah.
Always retrieve branch names when getBranchMap is called.