Use Eson client instead of helper function in rake tasks

This PR removes the `curl_request` helper function from rake tasks, the [Eson HTTP](https://github.com/Asquera/eson) client is used to create / remove templates and indexes.