Create query executor that constructs request from endpoint config

Capable of JSON and JSONP, as specified in endpoint config.