first pass at kibana 4.x support
working for file method, tests fixed
kibana 4