Return errors as JSON using the provided callback.
Adds xml2json dependency and requires version bump since it's backwards-incompatible.
Update documentation.
Merge pull request #10 from robludwig/returnErrorAsJson

Return errors as JSON using the provided callback.