Copy authConfigs on save so data is not modified

SaveConfig sets the Username and Password to an empty string
on save.  A copy of the authConfigs need to be made so that the
in memory data is not modified.
Add regression test for authConfig overwrite
Merge pull request #1283 from crosbymichael/username-not-set

Copy authConfigs on save so data is not modified