Validate branch-names and references in WebUI, API

Add specs for GitRefValidator
Validate tag-names and references in WebUI, API