Smarter response

The `shiva.http.JSONResponse` object does some checks in case of error. The
function `flask.ext.restful.utils.unpack` was extended.