Add client side validation to kubecfg and kubectl.

This addresses at least part of #1352