fixes for breaking changes from ElasticSearch 1.0

no more ‘ok’ in responses, field values returned as arrays, delete
queries need to be nested in query key, percolator changes
use raw_plain for document building