Initial work on using json-schema

Made schemas a part of a spec, figuring out how to enable extending
schemas and validating against runtime determined schemas.
checksum fix
Merge from jsonschema
newline
Extracted models
Validating models using schema. Partially.
whole schema for models