JSON error objects for debugging. Add two tests for invoking done() with non-Errors
Merge pull request #1270 from panuhorsmalahti/jsonerrors

JSON error objects for debugging.