Modify structure of request/response and refactory on testes

- Rename file requesttypes.php to ...http/allowedtypesrequested.php and modify the attributes to constants of class, this make more sense.
- Move file badrequest.php to ...http/response.php and modify the call of class response.
- Refactory on testes, create a dataprovider to make its data reusable.