extract Document from DocumentManager
write SyntaxError.message to console to provide some help for preference file errors.
Merge pull request #4235 from adobe/iwehrman/extract-document-from-document-manager

Extract Document from DocumentManager
Merge pull request #4256 from dloverin/json-error-msg

write SyntaxError.message to console log