Improve error display of objects.

Print JSON for objects, default serialization otherwise.
Handle readFile errors.
Improve RDFa fetching and errors.

- Fix control flow.
- Better errors if jsdom or RDFa modules are missing.