Upgrading rules file to use JSON data with rules for individual versions of the app, and a default rule to cover any unlisted versions.