Modified all instances of parseResponse to now have error handling.  When an error occurs, instead of throwing to the window object we now handle it appropriately.

#2106
Added tests to verify response redirection handling in addition to verifying parse responses is handled correctly when it throws.

#2106
Whenever we fail at parsing a response from the server we trigger the error handler and stop the connection.

#2106