Validate branch-names and references in WebUI, API
Fix hound errors