[#4] Use erlasticsearch as a reference and adapt it to work with HTTP