Some refinements, including error-message-hints.

Particularly, the code layout now catches and parses onerror events,
and gives suggestions about what might be wrong.