Separate config version from app version and add auto-upgrade of config