Improve code regarding request and response.
Allow replacing object instances.
Fixes and modifications regarding Response objects.