Add validation and tests (currently failing)
Manually replace {$ref: ...} entries with the schema they refer to. Workaround for garycourt/JSV#68