RefResolver updates

Couple things in here:
- Add support for defining custom uri scheme handlers #61
- Add support for caching remote refs (this supersedes #62)
- Unit tests for both of above