adding support for remote schema urls

Adding a schema with a $ref element that is a URL throws an exception, this adds support for that