Making custom ES queries form a Kibana plugin