Use the LoadDocumentCallback (previously LoadContextCallback) to load documents

... previously it was only used to load remote contexts.

This addresses #264.