Ongoing addition.

Changed json resource fetching so that now we inject jsonp-ish script into the global scope. That script is assumed to define a variable which is then used. Thanks CORS!