Fix JSONP exception handling and add CORS support
Also fixed an artifact in AggregatorInterpreter