Fix malformed namespace json tag
fix error message in validation test
fix captured loop variable
Fix struct tag in apparently untested config struct
Fix mismatched arg and formatter in Errorf
fix extra un-cosmetic extraneous code.
Merge pull request #1637 from lavalamp/fix

Fix 'go vet' issues
Add codec to restlient test.