Adding a synchronous response handler
Initial commit for the json stream response handler
Fixing an issue with the error callback