Add ability to load local documents

The document provider can now load files from the local filesystem instead of always trying to reach an URL.