JSONP and test fixes causing fails in IE

Made tests tolerant to using JSONP polling instead of XHR polling. Initializing `this.query` with an empty object in the constructor if it doesn't exist to avoid errors. 

JSONP fails when forming an incorrect connection. This is because `script.onerror` doesn't work for IE6-8. For now the test is ignored for cases that use JSONP polling.