Refactoring long polling transport to be able to fix bug #3227

Added the test where the disconnect token is tripped from the HttpClient.Get mocked method.