Added support for a few missing JSON Schema rules:

* Added support for '$ref' schema dereferencing.
* Added support for 'allOf'.
* Added support for 'required' list at the object level.
* Changed 'additionalProperties' to check for a valid patternProperties match.