Add JSONP support, move some tests for it