Update versions automatically when autoupdate is set to true.
Save the configuration with the new format when the deprecated one is detected.
Save the new config after assigning the credentials.
Make sure we load the deprecated configuration and override it with the new one.
Merge pull request #130 from jingweno/autoupdate

Autoupdate by configuration.