building a resolver to be used by validate method

set a resolver object with handler for http and https, such handlers
should be always the session on this first change.

this change makes possible to validar schemas which has $ref behind
endpoints that requires authentication.