Implement remote document loader

This fixes #42 and #43