Add support for external urls with $ref. Fixes #34