Make json schemas and scripts more reusable and modular

The script was adjusted to also serve in a pre-commit hook, see frameworks/extra-cmake-modules!368 (merged) The applets.schema.json file is a POC how more specific schema validation can look like.

This also adds support for more keywords, some of which were misused in existing code.

Merge request reports