Add optional validation to kubecfg/kubectl.
Merge pull request #2517 from brendandburns/kubecfg

Add client side validation to kubecfg and kubectl.