Add support for application/x-www-form-urlencoded.. and not only for JSON

WARNING, if you were not checking the content-type before and were just
assuming JSON, you will probably be surprised by new errors.