Original commit: elastic/x-pack-elasticsearch@069e5a1087
This change also adds synchronous methods to `MachineLearningClient`. relates elastic/x-pack-elasticsearch#567 Original commit: elastic/x-pack-elasticsearch@b3a4b38a51