Added an abstract elasticsearch service with utility methods

In order to remove duplicated code the init methods of the services now use utility methods defined in an adiitional base classn