Fix 'go vet' issues

Closes #1635.

Some of these look pretty serious.

Is proxy's file config ever used? If so, it was not using the expected field tag and this commit will break existing config files. I don't think it's used though?
File #1639 for this.