Refactor stuff out of launch_hub.py.

This functionality will be useful for an upcoming script.
Script to update the salt configuration of remote hosts.