Test & improve 404 handling

- set proper application/problem+json content-type following
  https://tools.ietf.org/html/draft-nottingham-http-problem
- add tests for 404 handling at various levels
- fix a crasher when trying to list buckets in a non-existing domain