Auto detect and load config version (fixes #9)

Save to JSON config by default