generalize Elasticsearch proxy

GET requests such as _mget still appear to be broken: they give 400
Bad Request error from Flask, probably in the get_json call.