Validate branch-names and references in WebUI, API

Add specs for GitRefValidator
Validate tag-names and references in WebUI, API
Merge pull request #7382 from Razer6/git_ref_validation

Validate branch/tag-names and references WebUI, API