Refactored create index rake task, split into two

The create index rake task is split into two steps, creating the index and uploading a template.

* create index rake task moved outside the template specific namespace
* the upload template rake task can store a given template under a different name, can be left blank to use the template name
* occurrences of `curl_request` calls changed to use Eson client