Convert all exceptions into JSON responses.
Merge pull request #35 from SURFnet/bugfix/json-domain-exceptions

Convert all exceptions into JSON responses