optionally get etcd vals from master, squash stack traces, and fix lint ...

Addresses https://github.com/saltstack/salt/issues/13227
Why move this in here from utils? I generally try to have one copy in a central location, so that when changes need to be made, they can be made in one place.