Change loadContext option to loadDocument. Support URI inputs.

* Use loadDocument option to load remote documents that are
  specified as URIs as inputs to API calls.
* Reuse loadDocument to load contexts.
* Simplify loadDocument callback to use RemoteDocument (old
  RemoteContext) object as a single parameter return value.