Added support for request/response inteceptors.
Merged from master.