Handle non-json responses: Return body as string

Right now whenever I try to access non existing resources via the http management api the json decoder throws an exception since he tries to parse html as json. I think we should only parse json if the content type suggests so and return the body string otherwise.

What do you think?