Minor refactor of ElasticaConnection

- Make it abstract like I wanted to
- Introduce a counter for number of connection reattempts we
  can do per server

Change-Id: I805086242e2b3fb97ef9533e846fa863e0bb8309
Merge "Minor refactor of ElasticaConnection"