pub fn save_hosts(hosts: &HostsFile) -> Result<(), HostError>
Save hosts configuration to hosts.json
Creates the config directory if it doesn’t exist. Creates a backup (.bak) if file already exists.