Added the ability to write the configuration to the Rexfile.