This commit adds support for rest tests using the same yaml and json formatting as for core elasticsearch. Also added is support for shield in the rest tests. Original commit: elastic/x-pack-elasticsearch@bbeb9c0fc9