Break the configuration into a config file

This allows the use of one script for several instances.