Added contextSchema argument to validate API functions.

I need to validate sub-schemas within the larger schema, and local references break if you just try to validate sub-schemas on sub-data. So I added a fourth argument to the validate API functions to include the context schema, rather than use the default behavior where the context schema is the same one that's given in for validation.