Changed schema resolution to be lazy using json pointers.
Expanded $ref on schemas.