Added the ability to save configuration files, and associated unit tests.