Fixed issues #64 and #67
So workspace-external files are now properly validated, and validation
occurs before any modification to the document.