Add local scripts, simplify kubecfg.sh

This is a proposed simplification for issue #834