modify browser httpClient impl to optionally accept httpOpts object with onSuccess/onError callbacks. Allows client apps to hook the raw http responses before the callback is invoked.